I have a pretty basic problem: I've got a list of around 15000 (small) objects, which I am trying to store. I originally just appended them to a list, but this took 100% of the CPU and basically didn't finish. On probing, it looks as though the time it takes to append something to a list goes up exponentially with the length of the list, and once the length is more than 10,000 or so, it becomes a problem.
This presumeably is because Python uses linked-lists, but there doesn't appear to be an alternative - the arrays can only be used for simple data types, not objects.
Can anyone advise?
Mike
This presumeably is because Python uses linked-lists, but there doesn't appear to be an alternative - the arrays can only be used for simple data types, not objects.
Can anyone advise?
Mike