Re:“Clean” Code, Horrible Performance
by cma on Tuesday February 28, 2023 @09:35AM
(#34969712)
It was Windows Terminal he wrote something faster than. Windows terminal was doing a whole GPU draw call per character (at 2x standard terminal height, 160x25, it was as many draw calls as a AAA game).
[ Parent
| on HN ]
No matter what design choices you argue for there are always ways to be an idiot about the implementation
Which is an excellent argument for why the WT team should have done some benchmarking, identified that they have a really dumb O(M*N) bottleneck in their rendering code, and optimized it.
It is not an excellent argument for why 'clean code' is not a better fit for the other 99% of their codebase.