News for hackers. Stuff that matters.
Re:Drop millions of allocations by using a linked list (2015) by svat on Friday March 12, 2021 @07:06PM (#26442502)
This is also how the TeX program works. Of course it has lots of variables (hundreds of "global" variables in fact), but for everything whose size may vary (boxes, lists of characters, lists of tokens for macros, …), it has two giant arrays of fixed size, one called “str” (aka the string pool, used for strings), and one called “mem” (used for everything else). It's this way partly because of the limitations of Pascal at the time.

There are no comments on this comment yet.