Closed Bug 118587 Opened 24 years ago Closed 24 years ago

unnecessary strdup()/free() in nsJARChannel.cpp, function GetContentType()

Categories

(Core :: Networking, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bernard.alleysson, Assigned: darin.moz)

References

()

Details

(Keywords: perf)

Attachments

(1 file)

just see URL
on launching mozilla with about:blank, this saves about 140 calls to strdup()/free()
adding perf keyword
Keywords: perf
Comment on attachment 63830 [details] [diff] [review] Remove a call to strdup()/free() Please take a look at the discussion in bug 118135 ("change nsCRT::memcpy to memcpy") - what about replacing the |nsCRT::strlen()| with plain ANSI-C |strlen()| ?
is this a significant performance win?
Status: UNCONFIRMED → NEW
Ever confirmed: true
my patch for bug 124042 happens to include very similar changes. marking as dependent on that bug.
Depends on: 124042
fixed now that the patch for bug 124042 has landed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: