Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use string replaces instead of splits #64

Merged
merged 1 commit into from
Feb 27, 2024

Commits on Feb 5, 2024

  1. feat: use string replaces instead of splits

    Using a split/join results in a lot of garbage collection for the unused
    arrays, along with being fairly slow. This just moves to using a RegExp
    replace instead.
    
    Bench result:
    > 3,410 ops/sec
    
    Bench result on main:
    > 1,150 ops/sec
    43081j committed Feb 5, 2024
    Configuration menu
    Copy the full SHA
    73e14bb View commit details
    Browse the repository at this point in the history