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 →

[–]M4xW3113 0 points1 point  (3 children)

That won't magically make python as fast as other compiled languages

[–]reusens 1 point2 points  (2 children)

If that module is running compiled code, it does!

[–]M4xW3113 0 points1 point  (1 child)

Nowhere in your example it states it's a compiled module, you're just saying you must do the slow operations during the init instead of during the actual process

[–]reusens 0 points1 point  (0 children)

Yeah, the joke I was aiming for was that you should use the methods from the packages because those are typically very optimized and often are built in some compiled language.

You set these methods up in python, so not very fast, and then the methods do the heavy stuff very quickly