Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement patch: Up to 20% compile speed improvements #9

Open
GoogleCodeExporter opened this issue Feb 1, 2016 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

In my application (with a deeply nested hierarchy of templates), this patch 
provides a 20% and up improvement to compile times by caching pattern lists, 
and speeding up restriction checks.  Testing speed against the included tests 
provides a more modest 5% speedup.

Original issue reported on code.google.com by dou...@google.com on 25 May 2011 at 9:02

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks. I made a few changes and brought that from ~20% to ~28% faster.

Testing performance using crunner.py isn't really accurate so I used this line 
with a large, representative template (73K, 1600 lines, 5700 words, 20k tokens).

spitfire-trunk-speedy> time scripts/spitfire-compile -O3 -X 
no-use-dependency-analysis test.spt test.spt test.spt test.spt test.spt 
test.spt test.spt test.spt test.spt test.spt
WARNING: unable to import psyco

real    0m5.426s
user 0m5.270s
sys  0m0.143s

Original comment by ms...@gmail.com on 26 May 2011 at 4:40

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant