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/2013-October/129191.html below:

[Python-Dev] Optimization

[Python-Dev] Optimization [Python-Dev] OptimizationSerhiy Storchaka storchaka at gmail.com
Sat Oct 5 23:58:54 CEST 2013
06.10.13 00:06, Victor Stinner написав(ла):
> The str type is immutable, bytearray is not. It's easier to justify
> optimisations on mutable types, like overallocate lists for example.

We can resize str or bytes if its refcount is 1. And resize is cheap in 
some circumstances. This optimization is CPython-only.


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