commit | d82b2455ae02e21d76c3d7a5b66d266bda3afb24 | [log] [tgz] |
---|---|---|
author | Zhang, Shiyu <shiyu.zhang@intel.com> | Fri Jun 28 02:22:34 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 27 09:13:44 2019 |
tree | 94d7c44542c572f3d52e1c284cd3684414e31064 | |
parent | e79751b3c16bbde95b6b8d1753b32f3148caf8b1 [diff] |
[intl] Speed up String.prototype.localCompare via compareUTF8 The localeCompare for ASCII chars needs to expand the string contents from one-byte representation into two-byte representation, which requires memory copy. This CL skips the representation conversion by using compareUTF8. It can improve the JetStream2 cdjs case by 21% on my machine. Change-Id: I3841dc700e36744aadd9a1ff9fa7d93c84dc04fd Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1624705 Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#62408}
V8 is Google's open source JavaScript engine.
V8 implements ECMAScript as specified in ECMA-262.
V8 is written in C++ and is used in Google Chrome, the open source browser from Google.
V8 can run standalone, or can be embedded into any C++ application.
V8 Project page: https://v8.dev/docs
Checkout depot tools, and run
fetch v8
This will checkout V8 into the directory v8
and fetch all of its dependencies. To stay up to date, run
git pull origin gclient sync
For fetching all branches, add the following into your remote configuration in .git/config
:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/* fetch = +refs/tags/*:refs/tags/*
Please follow the instructions mentioned at v8.dev/docs/contribute.