Mercurial > projects > ldc
view tests/mini/loops1.d @ 1633:5c0cebff9be8
Improve array append performance.
Actually use the appropriate runtime function, instead of just
growing the array by one!
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 14 Feb 2010 10:11:05 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module tangotests.loops1; void main() { size_t n; int x; ushort foo; for (n=0; n<8; n++,x++) { foo >>= 1; } }