DescriptionPrecompile mojom bindings generator jinja templates.
Previously, the mojom bindings generator would use the jinja template
files directly, requiring relatively expensive conversion to Python
bytecode once for each mojom file. This adds template precompilation
and changes the generator to use the precompiled bytecode.
On a z620 running Linux, generating all mojo bindings using GN
Before:
real 0m11.729s
user 4m22.588s
sys 0m6.003s
After:
real 0m2.948s
user 0m33.126s
sys 0m4.564s
GYP (many mojom files are only used in GN builds)
Before:
real 0m9.822s
user 0m49.949s
sys 0m1.046s
After:
real 0m5.354s
user 0m4.776s
sys 0m0.998s
Committed: https://crrev.com/61d8b73f3d3891991f2afcd27fc40f5b09448e27
Cr-Commit-Position: refs/heads/master@{#369349}
Patch Set 1 : #
Total comments: 8
Patch Set 2 : #Messages
Total messages: 18 (10 generated)
|