| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > blist |
|
blist
|
| 2 | 2 | 304 |
| 贡献者 | 讨论 | 代码提交 |
概述
The BList is a type that looks, acts, and quacks like a Python list, but has better performance for for modifying large lists.
For small lists (fewer than 128 elements), BLists and the built-in list have very similar performance.
Example usage:
>>> from blist import
>>> x = blist([0]) # x is a BList with one element
>>> x *= 2*29 # x is a BList with > 500 million elements
>>> x.append(5) # append to x
>>> y = x[4:-234234] # Take a 500 million element slice from x
>>> del x[3:1024] # Delete a few thousand elements from x
创建时间:2014-05-06 16:31
标签:
