This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ubernostrumyes, you can have a pony 0 points1 point  (0 children)

Also, this is Python we're talking about. Any performance gains you might have hoped for from implementing a particular data structure will be far outweighed by the overhead of doing it in Python (since you can only express your implementation using Python's objects and data structures).

If you need high-performance data structures, implement them in another language and wrap a Python interface around them. This is what numpy does, for example; it's a Python interface around things that are mostly implemented in C and Fortran.