Supporting all Rust standard types #1721
RodogInfinite
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently experimenting with using SurrealDB via the Rust crate. Much of the data I want to work with can be either f32 or f64 but with the f32 data, there's concerns about loss of precision if the data is: converted to f64 for the current
Float(f64)
type, operated on, stored in the db, read from the db, then converted back to f32 to work elsewhere in the code.Are there significant performance implications or other barriers/concerns that are significant enough to not to have all standard types supported:
An argument for adding these types is also the reduction of disk space wherever the smaller types are used.
This Rust Playground shows an example for each type, like the following:
Beta Was this translation helpful? Give feedback.
All reactions