[Python-3000] Making more effective use of slice objects in Py3k (original) (raw)

Ron Adam rrr at ronadam.com
Thu Aug 31 06:27:27 CEST 2006


Josiah Carlson wrote:

If views are always returned, then we can perform some optimizations (adjacent view concatenation, etc.), which may reduce running time, memory use, etc. d

Given a empty string and a view to it, how much memory do you think a view object will take in comparison to the string object?

Wouldn't there be a minimum size of a string where it would be better to just copy the string?



More information about the Python-3000 mailing list