r/Python • u/michaelanckaert python-programming.courses • Oct 30 '15
Improving your code readability with namedtuples
https://python-programming.courses/pythonic/improving-your-code-readability-with-namedtuples/
186
Upvotes
r/Python • u/michaelanckaert python-programming.courses • Oct 30 '15
2
u/are595 Oct 31 '15
Wow, I never knew about
__slots__. I just shaved 14% total run time off of a script I was writing that has to deal with a lot of objects (on the order of hundreds of thousands)! I didn't check memory usage, but I'm sure that went down as well.Is there any place good for learning about these kinds of performance tips?