summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e22e481)
Moving from 4 to 16 can improve the performance a little for short lived
programs.
if (new_capacity == 0)
new_capacity = this._size * 2;
if (new_capacity == 0)
if (new_capacity == 0)
new_capacity = this._size * 2;
if (new_capacity == 0)
// reallocate the memory with the new_capacity
T* new_data = cast(T*) realloc(this._data, new_capacity * T.sizeof);
if (new_data is null)
// reallocate the memory with the new_capacity
T* new_data = cast(T*) realloc(this._data, new_capacity * T.sizeof);
if (new_data is null)