WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
9296
Performance improvement for svn-create-patch
https://bugs.webkit.org/show_bug.cgi?id=9296
Summary
Performance improvement for svn-create-patch
David Kilzer (:ddkilzer)
Reported
2006-06-03 13:08:19 PDT
Once $indexPath is set (on the very first line returned), the three regular expressions inside the "if ($indexPath)" block of the diff() subroutine are applied to every single line of the resulting patch. This is unnecessary.
Attachments
Patch v1
(1.18 KB, patch)
2006-06-03 13:16 PDT
,
David Kilzer (:ddkilzer)
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2006-06-03 13:16:09 PDT
Created
attachment 8682
[details]
Patch v1 Patch v1 undefines the $indexPath variable so that the three regex replacement statements do not get run after the paths in each patch header are processed. Note that I didn't actually do any benchmarking; this seemed like an obvious performance win.
Timothy Hatcher
Comment 2
2006-06-03 13:36:02 PDT
ddkilzer landed this in
r14713
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug