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

(opt): Small String Optimisations (SSO) #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hirevo
Copy link
Owner

@Hirevo Hirevo commented Aug 21, 2020

This PR attempts to improve performance by adding support for the Small String Optimisation (SSO) for the SOM String values, by using the smartstring crate from crates.io, which allows inlining a string on the stack of up-to 23 bytes long.

This PR only affects the bytecode interpreter (although it could also apply to the AST one).

@Hirevo Hirevo added M-interpreter Module: Interpreter P-medium Priority: Medium C-performance Category: Performance improvements labels Aug 21, 2020
@Hirevo Hirevo self-assigned this Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-performance Category: Performance improvements M-interpreter Module: Interpreter P-medium Priority: Medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant