autobib / autobib

A command-line tool for managing bibliographic records
GNU Affero General Public License v3.0
5 stars 0 forks source link

Look into small string optimization #112

Open alexrutar opened 2 hours ago

alexrutar commented 2 hours ago

We might consider using something like hipstr for an Arc-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

alexrutar commented 1 hour 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.