Skip to content

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

Open
Hirevo wants to merge 1 commit into
masterfrom
opt/small-strings
Open

(opt): Small String Optimisations (SSO)#15
Hirevo wants to merge 1 commit into
masterfrom
opt/small-strings

Conversation

@Hirevo

@Hirevo Hirevo commented Aug 21, 2020

Copy link
Copy Markdown
Owner

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