gecko-dev/js
Thom Chiovoloni a7d756b8ff Bug 1343005 - Optimize Quote in json.cpp. r=jorendorff
Implements the following optimizations:

- Resize the destination buffer to the maximum size possible, write to it
  directly, and then shrink it back to the actual size written.
- Avoid iterating over non-special-character runs multiple times.
- Use a lookup table to determine both if we should escape the character
  what the character after the escape sequence should be if so.
- Converts the destination buffer to the correct character type in advance of
  stringifying, instead of checking every character in the inner loop.

MozReview-Commit-ID: 7iWRqm3EopX

--HG--
extra : rebase_source : 1b18faee586718ec54b922222a28a31e3899d771
2017-08-23 20:16:20 -04:00
..
ductwork/debugger
examples
ipc Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10:00
public Bug 1362098 - Add source position to requested module information r=till 2017-08-23 17:24:37 +01:00
src Bug 1343005 - Optimize Quote in json.cpp. r=jorendorff 2017-08-23 20:16:20 -04:00
xpconnect Bug 1393435 - Remove unnecessary inclusions of the crash reporter header files; r=mconley 2017-08-07 14:10:02 +02:00
ffi.configure Bug 1363811 - Replace all uses of delayed_getattr(a, 'b') with a.b. r=cmanchester+432261 2017-05-19 07:03:40 +09:00
moz.build
moz.configure Backed out changeset 862ba8683d19 (bug 1272697) 2017-07-28 20:18:28 +02:00