312
Comment:
|
345
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Things that we tried but decided were not good ideas. | = Things that we tried but decided were not good ideas. = '''List pre-allocation''' |
Things that we tried but decided were not good ideas.
List pre-allocation
Adding the ability to pre-allocate builtin list storage. At best we can speed up appends by about 7-8% for lists of 50-100 elements. For the large part the benefit is 0-2%. For lists under 20 elements, peformance is actually reduced when pre-allocating.