News for hackers. Stuff that matters.
Re:Thoughts on the Word Spec in Rust by piker on Thursday October 09, 2025 @04:25AM (#45524992)
This is the solution for that particular issue that Tritium uses.

[NOTE: one dragon would be the memory consumption alluded to in the article.]

Re:Thoughts on the Word Spec in Rust by robmccoll on Thursday October 09, 2025 @04:34AM (#45525045)
Could you intern strings? Seems like you're likely to see the same tags and attributes over and over.
Re:Thoughts on the Word Spec in Rust by piker on Thursday October 09, 2025 @04:35AM (#45525054)
Yes, and there are probably a lot of other clever ideas. But the better solution is probably just to implement more of the spec. Once you get through maybe 80% of the tags, you've eliminated 99.9% of the memory issue given their frequency distribution.