Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r184501 - [JSC] Speed up URL encode/decode by using bitmaps ins…
…tead of strchr(). <https://webkit.org/b/145115> Reviewed by Anders Carlsson. We were calling strchr() for every character when doing URL encoding/decoding and it stood out like a sore O(n) thumb in Instruments. Optimize this by using a Bitmap<256> instead. 5.5% progression on Kraken/stanford-crypto-sha256-iterative. * runtime/JSGlobalObjectFunctions.cpp: (JSC::makeCharacterBitmap): (JSC::encode): (JSC::decode): (JSC::globalFuncDecodeURI): (JSC::globalFuncDecodeURIComponent): (JSC::globalFuncEncodeURI): (JSC::globalFuncEncodeURIComponent): (JSC::globalFuncEscape):
- Loading branch information
1 parent
731373b
commit 63fa48a
Showing
2 changed files
with
55 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters