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

Enhance Characters type #15

Open
sl-solution opened this issue Oct 21, 2021 · 0 comments
Open

Enhance Characters type #15

sl-solution opened this issue Oct 21, 2021 · 0 comments
Labels

Comments

@sl-solution
Copy link
Owner

This is to track the issue with string in Julia

String in Julia is not suitable for InMemoryDatasets, and Characters (UInt8 - UInt16) currently is good only for strings up to 15 characters (compiling time issue with NTuples). InlineStrings are restricted and wasteful. The idea is to have something similar to Characters but instead of having NTuple we should have a vector of UInt8 with an attribute of length which fixes the length of each element, so vector of Characters{8} with 10 elements should be a vector of 10*8 UInt8 plus an attribute of 8 which indicates each string in this vector is of length 8. For shorter strings they should be padded by space and for longer one they should be truncated to 8 characters or less if they are UTF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant