Skip to content

Strings should not be allocated to a table #32

@pufferfish101007

Description

@pufferfish101007

Rather than growing the strings table every time we need to allocate a string off of the stack, strings should be stored in globals/locals that are unique to each variable (following #31, there should be no other time at which strings need to be allocated). This might increase copying of strings but that should have effectively zero overhead because externrefs are immutable references.
This should also speed up string access from boxed variables, because we will no longer need to store a pointer to the string index, as the global/local index of a string can be known at compile time.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions