Jordan Pittman 92a43d6904
Speed up template migrations (#14679)
This PR does two things:
- Computes UTF-16 string positions in Rust rather than in JS —
eliminating a significant number of traversals of the input string
- Applies replacements to the content in ascending order so we only ever
move forward through the source string — this lets v8 optimize string
concatenation
2024-10-16 13:13:48 +02:00
..
2024-10-15 10:28:34 +00:00
2024-10-16 13:13:48 +02:00
2024-10-15 10:28:34 +00:00