Mercurial > projects > ldc
comparison gen/arrays.h @ 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 | 79758fd2f48a |
children | 8f121883bce8 |
comparison
equal
deleted
inserted
replaced
1632:8c37dcd7cfde | 1633:5c0cebff9be8 |
---|---|
22 | 22 |
23 DSliceValue* DtoNewDynArray(Loc& loc, Type* arrayType, DValue* dim, bool defaultInit=true); | 23 DSliceValue* DtoNewDynArray(Loc& loc, Type* arrayType, DValue* dim, bool defaultInit=true); |
24 DSliceValue* DtoNewMulDimDynArray(Loc& loc, Type* arrayType, DValue** dims, size_t ndims, bool defaultInit=true); | 24 DSliceValue* DtoNewMulDimDynArray(Loc& loc, Type* arrayType, DValue** dims, size_t ndims, bool defaultInit=true); |
25 DSliceValue* DtoResizeDynArray(Type* arrayType, DValue* array, DValue* newdim); | 25 DSliceValue* DtoResizeDynArray(Type* arrayType, DValue* array, DValue* newdim); |
26 | 26 |
27 DSliceValue* DtoCatAssignElement(DValue* arr, Expression* exp); | 27 void DtoCatAssignElement(Type* type, DValue* arr, Expression* exp); |
28 DSliceValue* DtoCatAssignArray(DValue* arr, Expression* exp); | 28 DSliceValue* DtoCatAssignArray(DValue* arr, Expression* exp); |
29 DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2); | 29 DSliceValue* DtoCatArrays(Type* type, Expression* e1, Expression* e2); |
30 DSliceValue* DtoCatArrayElement(Type* type, Expression* exp1, Expression* exp2); | 30 DSliceValue* DtoCatArrayElement(Type* type, Expression* exp1, Expression* exp2); |
31 | 31 |
32 void DtoStaticArrayCopy(LLValue* dst, LLValue* src); | 32 void DtoStaticArrayCopy(LLValue* dst, LLValue* src); |