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/2000-June/004702.html below:

why doesn't list.extend use the sequence interface?

[Python-Dev] Q: why doesn't list.extend use the sequence interface? [Python-Dev] Q: why doesn't list.extend use the sequence interface?Mark Hammond mhammond@skippinet.com.au
Sat, 17 Jun 2000 18:16:18 +1000
/F:
> just for the record, I just changed some generic sequence code
> to something like:
...
> so in other words, this construct is more than 4 times faster
> than plain use of PySequence_GetItem.

Good stuff!

> guess it's time to fix a couple of things in PIL...

Its a fair bit of code to duplicate everywhere you want the speed increase.
How can we add a similar scheme to the core, so the changes people need to
make are trivial (to the point where the change is zero!)?

Mark.




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