[Webkit-unassigned] [Bug 97794] New: IndexedDB: Optimize encodeString/decodeString
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 27 09:16:59 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=97794
Summary: IndexedDB: Optimize encodeString/decodeString
Product: WebKit
Version: 523.x (Safari 3)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jsbell at chromium.org
CC: dgrogan at chromium.org, alecflett at chromium.org
CPU profiling shows that string encoding/decoding is a hot spot for IDB.
* The backing store encodes strings in UTF-16BE. Most CPUs these days are little-endian, which means byte swapping
* The byte swapping for decode is done into a StringBuilder with append() calls, which have overhead.
Short term, this could be optimized by bypassing StringBuilder and walking memory short by short doing using htons/ntohs c/o arpa/inet.h
Long term it would make sense to switch the backing store encoding to UTF-16LE to save work on most architectures.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list