Hello, is there a way to pass types as uuid?
UUID is generally represented as an string but it is stored as a fixed-size array of numbers in some languages such as rust.
Would there be any perf gain by passing the UUID as a tuple? Is there a way to automatically convert the tuple back to an UUID in both ends (host/guest)?
Ideally, this would not only apply to UUID but to other types that host or guest are able to de-serialize from simple types.
At present string
, list
, or a tuple are the main options for doing this, though they'll all require a little extra conversion on both ends. There are discussions about adding bounded strings and lists in the future, which will improve on these.
I see there is no way of avoiding an extra layer of conversion for this types. A little internal wrapper library will do the work.
Thanks.
ocxide has marked this topic as resolved.
Last updated: Nov 22 2024 at 17:03 UTC