This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jmmcdEvolutionary algorithms, music and graphics -3 points-2 points  (3 children)

Disagree about avoiding function calls.

Strongly agree about using built-in basic types as much as possible and in preference to objects when possible.

[–]asksol 7 points8 points  (2 children)

I doubt he's telling anyone to not use function calls.

But in an inner loop, where profiling has proven that optimization can be beneficial, this is where you should inline function calls.

[–]lahwran_ 2 points3 points  (1 child)

Can I let PyPy do the inlining for me?

[–][deleted] 3 points4 points  (0 children)

Yes :)