SDoc is an abstraction for generated formatted text including the assembly the compiler generates. The problem was not that the code generator was generating extra output, but that the text-formatting functionality it used was doing extra bookkeeping that made sense for human-readable text but was not necessary for machine-readable assembly.
Using the same abstraction for both seems a bit silly at first, but it helped the codebase stay more consistent and was already pretty well-optimized. The changes in the article optimized it further by splitting out some of the more expensive functionality while keeping the same general engineering advantages.
Using the same abstraction for both seems a bit silly at first, but it helped the codebase stay more consistent and was already pretty well-optimized. The changes in the article optimized it further by splitting out some of the more expensive functionality while keeping the same general engineering advantages.