top | item 45525045

(no title)

robmccoll | 4 months ago

Could you intern strings? Seems like you're likely to see the same tags and attributes over and over.

discuss

order

piker|4 months ago

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.