more inlining, performance, and documentation