After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347275 - StringView::trim() too slow
StringView::trim() too slow
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
pre-1.0 betas
Other Linux
: Normal enhancement
: 1.0
Assigned To: Charles Kerr
Pan QA Team
: 347276 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-07-12 04:55 UTC by Charles Kerr
Modified: 2006-07-12 20:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
faster utf8-friendly trim() (1.15 KB, patch)
2006-07-12 04:59 UTC, Charles Kerr
committed Details | Review

Description Charles Kerr 2006-07-12 04:55:40 UTC
The changes made to StringView::trim() utf8-friendly in 0.102
are very inefficient.  trim() now takes up 50% of the time in
DataImpl::load_headers().

Attached is a patch that lowers that to 10% of load_headers.
Comment 1 Charles Kerr 2006-07-12 04:59:02 UTC
Created attachment 68792 [details] [review]
faster utf8-friendly trim()
Comment 2 Charles Kerr 2006-07-12 05:02:11 UTC
*** Bug 347276 has been marked as a duplicate of this bug. ***