-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support larger inline strings #119
Comments
The way to do so would be to switch Typenum supports lifting and lowering to/from plain const generics, so the API can still be pure const generics even if the implementation uses typenum to do math to them. |
Maybe the other direction would be possible, too? 16 bytes with the capacity on the heap. |
Nah, I don't think this is a good idea. That would make It would also impact |
It might be useful to have something like |
Coming back to this, my time should be freeing up soon, and I was thinking about how to further improve I plan to put together a proposed design/"next steps" soon which will cover additional variants like |
Good to hear, I really want #264 to be done and I thought about implementing it myself, but I am a bit busy recently so not enough time for this.
For CompactPath, I think it might make sense to first implement unix::CompactOsStr, which can contain arbitrary byte and windows::CompactOsStr, which contains utf-16. Once they are ready, compact_str can trivially define CompactOsStr and then CompactPath. Even if it fails, it would still have some usable types for further investigation/experiments. |
With the recent advancements in const generics, it's theoretically possible to support a
CompactString
with a user defined size that is > 24, e.g. 32, 40, 48 bytes long. We should try doing this and playing with an APIThe text was updated successfully, but these errors were encountered: