A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-September/055936.html below:

[Python-Dev] String views (was: Re: Proof of the pudding: str.partition())

[Python-Dev] String views (was: Re: Proof of the pudding: str.partition()) [Python-Dev] String views (was: Re: Proof of the pudding: str.partition())skip@pobox.com skip at pobox.com
Thu Sep 1 04:21:12 CEST 2005
    Tim> One of the big disadvantages of string views is that they need to
    Tim> keep the original object around, no matter how big it is. But in
    Tim> the case of partition, much of the time the original string
    Tim> survives for at least a similar period to the partitions.

Not necessarily.  Presumably a string view would reference another string
object's data buffer.  A possible optimization would be to convert from a
view to a normal string once the original strings' refcount dropped to one,
particularly if the view's size was substantially smaller than that of the
original string.

Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4