3 ms·
the alternative they chose was to permanently waste memory on fixed-size struct fields, so i guess it was actually an option malloc on the pdp-11 never compact
by kragen 4y ago
the alternative they chose was to permanently waste memory on fixed-size struct fields, so i guess it was actually an option
malloc on the pdp-11 never compacted of course
the filesystem supported 14 characters for the basename, but evidently we're talking about code with a 14-character limit on the pathname, not the basename
- tinus_hn 4y agoYou don’t need compaction to reuse fixed size structures. I presume their priorities were with creating a working system, not one that answers to the ‘requirements’ of 50 years into the future.
- kragen 4y agoyou don't need compaction to reuse heap-allocated memory either wasted memory due to heap fragmentation is very similar to wasted memory due to slack space in fixed-size structure fields