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

perf: prefer smaller possibly stack allocated strings #43

Merged
merged 11 commits into from
Dec 20, 2024

Conversation

capacity_builder = "0.4.0"
capacity_builder = { version = "0.5.0", features = ["ecow", "hipstr"] }
hipstr = "0.6"
ecow = { version = "0.2.3", features = ["serde"] }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can swap out these dependencies to try out other stuff. hipstr allows up to 23 bytes so we use that for package names (scoped names are mostly shorter than that) and then ecow is 15 bytes, so used for shorter stuff like tag names, pre/build parts.

@dsherret dsherret requested a review from bartlomieju December 19, 2024 17:41
@dsherret dsherret changed the title perf: use smaller stack allocated strings perf: prefer smaller possibly stack allocated strings Dec 20, 2024
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's try it out

@dsherret dsherret merged commit ccbe695 into denoland:main Dec 20, 2024
1 check passed
@dsherret dsherret deleted the perf_stack_strings branch December 20, 2024 19:03
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.

2 participants