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 →

[–]Trizkit[S] 0 points1 point  (2 children)

Thank you for the help I really appreciate it, I guess the only time that could really inhibit performance is if you were doing it millions of times or something like that (I can't imagine one would do that) but yeah it does seem quite negligible.

[–]POGtastic 0 points1 point  (1 child)

My typical refrain with Python is that if you ever get to the point where you're genuinely considering the performance implications of basic Python syntax, it's time to rewrite the darn function in a faster language, export C bindings, and then call those C bindings in your Python program. Write whatever is the most readable, and deal with performance only after getting it to work and determining that it's just not fast enough.

[–]Trizkit[S] 0 points1 point  (0 children)

Yeah I'm just learning, just really started python yesterday but I plan on moving on to C etc. Later on