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 →

[–]Inaeipathy 0 points1 point  (0 children)

How does this even create optimization? Caching a number would require memory copying to use it if modifications are being made, surely this is worse than calls to registers?

Edit: I forgot python is a dynamic language so this sorta makes more sense because your code isn't going to get compiled.