Closed
Bug 145373
Opened 23 years ago
Closed 23 years ago
Change match and search abuse to use test instead
Categories
(SeaMonkey :: Composer, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.2alpha
People
(Reporter: neil, Assigned: cmanske)
Details
(Keywords: perf)
Attachments
(1 file, 3 obsolete files)
8.53 KB,
patch
|
cmanske
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Morphing this bug because it was hiding a bigger error.
Assignee: syd → cmanske
Summary: Inline trivial function StripPxUnit → Change match and search abuse to use test instead
Reporter | ||
Comment 3•23 years ago
|
||
Attachment #84119 -
Attachment is obsolete: true
Reporter | ||
Comment 4•23 years ago
|
||
Reporter | ||
Comment 5•23 years ago
|
||
The point of these patches is that in most cases match and/or search is merely
being used to test for the presence of a substring. While there are other cases
where the substrings or their positions are important my patches convert the
simpler cases to use the test function instead. This should be more logical and
in the case of match also more efficient as match returns an array.
Note that I am not immune from abusing match in this way :-)
Assignee | ||
Comment 6•23 years ago
|
||
Neil: let's simplify and supply one patch with all the changes. Thanks.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2alpha
Reporter | ||
Comment 7•23 years ago
|
||
Attachment #89797 -
Attachment is obsolete: true
Attachment #89799 -
Attachment is obsolete: true
Assignee | ||
Comment 8•23 years ago
|
||
Comment on attachment 91493 [details] [diff] [review]
Combined patch
r=cmanske
I agree that this is all more efficient.
Attachment #91493 -
Flags: review+
Comment 9•23 years ago
|
||
Comment on attachment 91493 [details] [diff] [review]
Combined patch
sr=alecf
Attachment #91493 -
Flags: superreview+
Assignee | ||
Updated•23 years ago
|
Whiteboard: [FIX IN HAND]need sr= → [FIX IN HAND]
Assignee | ||
Comment 10•23 years ago
|
||
checked into 1.2 trunk
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•