をご覧いただけますblist
。彼らのウェブサイトから引用:
blist は Python リストのドロップイン置換であり、大きなリストを変更する際により優れたパフォーマンスを提供します。
...
以下は、blist がビルトイン リストよりも漸近的に優れているユース ケースの一部です。
Use Case blist list
--------------------------------------------------------------------------
Insertion into or removal from a list O(log n) O(n)
Taking slices of lists O(log n) O(n)
Making shallow copies of lists O(1) O(n)
Changing slices of lists O(log n + log k) O(n+k)
Multiplying a list to make a sparse list O(log k) O(kn)
Maintain a sorted lists with bisect.insort O(log**2 n) O(n)
ここにいくつかのパフォーマンス数値があります --> http://stutzbachenterprises.com/performance-blist