top | item 2087906

Pyramid's Optimizations - why it executes less code to do more work

15 points| cd34 | 15 years ago |plope.com

5 comments

order
[+] btilly|15 years ago|reply
They are measuring speed in an unfair way.

According to the article, Pyramid pushes a lot of work to C code. But then they measure relative performance by how much output the Python profiler has. However anything done in C is invisible to the Python profiler. That means that time is being spent and work is being done that they are not measuring.

The result is probably pretty fast. But I strongly doubt it is faster by the factor that their numbers claim.

[+] chrism|15 years ago|reply
Python function calls have overhead. Avoiding them is a common optimization technique.
[+] wisty|15 years ago|reply
OK, so Pyramid is the successor to Pylons. The article could have made that more obvious.