Open Bug 2003461 Opened 3 days ago Updated 1 day ago

Use StringChars instead of JSStringBuilder for toBase64/toHex

Categories

(Core :: JavaScript: Standard Library, enhancement, P1)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: anba, Assigned: anba)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

No description provided.

StringChars allows to directly pass the allocated characters to the result JSString*.

Similar perf (if not better) than my ugly patch. I also like that it localizes the Append code to the ToBase64 function, as that will make SIMD'ing or coaxing the auto-vectorizer easier. I was not liking the circular paths that tracing infallibleAppend was taking me down.

Blocks: sm-runtime
Severity: -- → N/A
Priority: -- → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: