Open alexrutar opened 2 hours ago
Probably this is not really necessary (I still think database lookups are over 90% of program runtime, maybe more, would be interesting to benchmarks). But even using immutable string type, just to clarify the meaning of things likeRecordId
, RemoteId
, etc. could be great.
We might consider using something like
hipstr
for anArc
-type string which has inline-able small string optimization to be stack only for any identifier under 22 bytes (which is the often the case).Some other small string optimization types: https://github.com/rosetta-rs/string-rosetta-rs?tab=readme-ov-file