Bug 45735 - Use fastMalloc in libxml
Summary: Use fastMalloc in libxml
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 43085
  Show dependency treegraph
 
Reported: 2010-09-14 01:32 PDT by Patrick R. Gansterer
Modified: 2010-09-15 01:51 PDT (History)
1 user (show)

See Also:


Attachments
possible Patch (1.29 KB, patch)
2010-09-14 01:32 PDT, Patrick R. Gansterer
mrowe: review-
paroga: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2010-09-14 01:32:13 PDT
Created attachment 67526 [details]
possible Patch

libxml provides a function called xmlMemSetup() (http://xmlsoft.org/html/libxml-xmlmemory.html#xmlMemSetup), where we can set the memory access functions.

The strange thing on my machine was, that it was slower with WTF:fastMalloc. Any ideas?
I tried a ~10MB SVG and stopped the time from first doWrite until doEnd with a GTK release build on linux.
Comment 1 Mark Rowe (bdash) 2010-09-14 11:23:21 PDT
Why is the patch flagged for review when you claim it makes things slower?
Comment 2 Patrick R. Gansterer 2010-09-14 11:38:46 PDT
(In reply to comment #1)
> Why is the patch flagged for review when you claim it makes things slower?
IMHO it should get faster. Maybe I miss something? That's the reason. Feel free to remove the r?.
Comment 3 Mark Rowe (bdash) 2010-09-14 12:17:41 PDT
Comment on attachment 67526 [details]
possible Patch

Marking as r- as the author mentioned this was a performance regression.  Our policy towards performance is to take changes that measure as performance wins, not changes that we hope may be faster.  I’d suggest that this bug be closed unless there’s some compelling reason to think that we can make this in to a performance win.
Comment 4 Patrick R. Gansterer 2010-09-14 12:20:57 PDT
(In reply to comment #3)
> (From update of attachment 67526 [details])
> Marking as r- as the author mentioned this was a performance regression.  Our policy towards performance is to take changes that measure as performance wins, not changes that we hope may be faster.  I’d suggest that this bug be closed unless there’s some compelling reason to think that we can make this in to a performance win.
Do you have any idea why this is (on my machine!!) slower? Shouldn't it be faster with fastMalloc?
Maybe someone can try on a other platform before we close the bug?
Comment 5 Zoltan Horvath 2010-09-15 01:17:31 PDT
Using of TCmalloc doesn't mean automatic performance improvement, especially not for external libraries.
I agree with Mark, we should take this change.
Comment 6 Zoltan Horvath 2010-09-15 01:51:35 PDT
> I agree with Mark, we should take this change.

We should not take this change.