Oct-07-2016, 09:48 PM
My plan is to repost this this weekend, but here's the one metulburr already migrated: http://python-forum.io/Thread-Efficiency-Crash-Course
The idea is basically the same as the example. Slicing a string, like building a string with concatenation, will create a whole new one each time.
Also notable I suppose on top of efficiency is the API. I would argue an ideal API supports iterables, not just slicables.
The idea is basically the same as the example. Slicing a string, like building a string with concatenation, will create a whole new one each time.
Also notable I suppose on top of efficiency is the API. I would argue an ideal API supports iterables, not just slicables.