Skip to content

Avoid repeated string concatenation to improve performance - #738

Open
ivankra wants to merge 1 commit into
davidbonnet:mainfrom
ivankra:main
Open

Avoid repeated string concatenation to improve performance#738
ivankra wants to merge 1 commit into
davidbonnet:mainfrom
ivankra:main

Conversation

@ivankra

@ivankra ivankra commented Nov 14, 2025

Copy link
Copy Markdown

Some JavaScript engines don't implement roped strings (e.g. QuickJS-NG) and thus repeated string concatenation here leads to quadratic runtime.

Happened to yt-dlp - see bellard/quickjs#445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant