Hey there,
i am wondering if there are any recipes or best practices to create a python class with the following properties:
[ul]
[li]High performance (for currently up to 1000 to 2000 entries. For adding, removing, changing order etc.)
[/li][li]Maintains a given order
[/li][li]Allows for adding items at specified place
[/li][li]Allows for easy re-ordering (move item up/down, move item before or after item, delete item etc.)
[/li][li]Allows for nesting (optionally)
[/li][/ul]
I have been googling and came across things like OrderedDict. That seems to be rather good performance wise, but only maintains the order items are initially added.
Any pointers are more than welcome
Regards,
Thorsten