Föderation · Sa 10.05.2025 03:44:44 @lizzy@social.vlhl.dev parsing a double from a string... repeatedly... is just about the most expensive thing in this entire file. |
Föderation · Sa 10.05.2025 05:22:11 @lizzy@social.vlhl.dev @ada@zoner.work snac deals with a lot of JSON strings, all data is stored in JSON files on disk, sent as JSON over network, etc. Handling the data as loosely typed strings most of the time is likely cheaper than marshaling everything into well-typed "objects" and then serializing them back again on I/O. I haven't delved much into the implementation of xs myself, but I used it when I wrote a few patches for snac, and it was acceptable to use. I've been using snac for a few months, and it's much better on resources than any other major AP software I've seen, so I don't have complaints about the performance of parsing doubles :) |
Föderation · Sa 10.05.2025 17:35:08 Hi, #snac author here. The XS_TYPE_STRING 0x02 ASCII: STX (start of text)So, yes, they are arbitrary, but make some fucking sense, or at least a little bit. CC: @lizzy@social.vlhl.dev |