summaryrefslogtreecommitdiffstats
path: root/src/scripttools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-18 21:18:23 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-22 17:12:16 (GMT)
commit4967231a9e5c39de3a60b61db9b6a71266a04829 (patch)
tree486e3dcf053b8399bbd15042ae23dd011ef5816f /src/scripttools
parent422f353135dc8a6b3694a7f0994429df7695d4bf (diff)
downloadQt-4967231a9e5c39de3a60b61db9b6a71266a04829.zip
Qt-4967231a9e5c39de3a60b61db9b6a71266a04829.tar.gz
Qt-4967231a9e5c39de3a60b61db9b6a71266a04829.tar.bz2
optimize queue-like structures
a list to which we append after we took something from the beginning is most likely a queue, and it seems unlikely that we would suddenly start prepending to it. consequently, optimizing the prepending case by leaving the first third of the allocation free just increases the number of times the array needs to be shifted down. Reviewed-by: joao
Diffstat (limited to 'src/scripttools')
0 files changed, 0 insertions, 0 deletions