Skip to content
Snippets Groups Projects
Commit 3f06b018 authored by delvedor's avatar delvedor
Browse files

Faster string serialization

parent 2148a389
No related branches found
No related tags found
No related merge requests found
......@@ -104,8 +104,8 @@ function $asStringSmall (str) {
for (var i = 0; i < l && point >= 32; i++) {
point = str.charCodeAt(i)
if (point === 34 || point === 92) {
result += str.slice(last, i) + '\\' + str[i]
last = i + 1
result += str.slice(last, i) + '\\'
last = i
}
}
if (last === 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment