1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:57:34 +00:00
serenity/Userland
Andreas Kling a285e36041 LibJS+AK: Make String.prototype.repeat() way faster
Instead of using a StringBuilder, add a String::repeated(String, N)
overload that takes advantage of knowing it's already all UTF-8.

This makes the following microbenchmark go 4x faster:

    "foo".repeat(100_000_000)

And for single character strings, we can even go 10x faster:

    "x".repeat(100_000_000)
2023-12-30 13:49:50 +01:00
..
Applets Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
Applications Userland: Actually use the correct character map index from KeyEvent 2023-12-29 16:40:59 +01:00
BuggieBox checksum: Add support for BLAKE2b 2023-09-17 16:49:35 +03:30
Demos Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
DevTools Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
DynamicLoader Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Games Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Libraries LibJS+AK: Make String.prototype.repeat() way faster 2023-12-30 13:49:50 +01:00
Services LibWeb: Apply scroll boxes offsets after painting commands recording 2023-12-30 11:10:24 +01:00
Shell Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
Utilities headless-browser: Use run_dump_test() for single-test runs as well 2023-12-24 13:23:40 +01:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00