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

Add small string optimisation with compact_str #1051

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

Conversation

DomWilliamsEE
Copy link

Adds a feature to use CompactString in generated code, to reduce allocations with large amounts of short strings.

@DomWilliamsEE DomWilliamsEE force-pushed the master branch 2 times, most recently from 8a0dfcd to 555906f Compare May 7, 2024 15:51
@tvincent2
Copy link

I'd be super interested in having this feature.
Is there anything I can do to help?

@DomWilliamsEE
Copy link
Author

There is some issue with one of the CI checks that I couldn't reproduce, I imagine that is the first blocker 😄

@caspermeijn
Copy link
Collaborator

While I do agree this is a handy feature, I currently don't want to accept it. There are a lot of possible variants that people want to add, but this method is not scalable. I have some ideas to make the types used in generated fields more configurable. CompactString could be one of the new types. However, I currently have not the bandwidth to work on that.

If you are willing to contribute (time or money), please contact me to figure out the details.

Thanks, Casper

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.

3 participants