4 ms·
The C++ parser has been completely rewritten in the last few years to push the current code generation design to its limits. The biggest obstacle in the way of
by haberman 6y ago
The C++ parser has been completely rewritten in the last few years to push the current code generation design to its limits. The biggest obstacle in the way of optimizing it further is legacy APIs, especially std::string for string fields, which forces tons of small heap allocations and frees and defeats the benefits of arena allocation.
Changing very widely used APIs is not easy, these things take time.
- pjmlp 6y agoInteresting, thanks for the clarification, however why do libraries depend on what should be implementation details of generated code to start with? Something that by good CI/CD practices shouldn't even be part of checked in code.