Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: test: Increase linearly for realloc size
When using exponentially resizing, we met the following exploded using memory resources: ``` cycle 1: 4096 cycle 2: 8192 cycle 3: 16384 cycle 4: 32768 cycle 5: 65536 cycle 6: 131072 cycle 7: 262144 cycle 8: 524288 cycle 9: 1048576 cycle 10: 2097152 cycle 11: 4194304 cycle 12: 8388608 cycle 13: 16777216 cycle 14: 33554432 cycle 15: 67108864 cycle 16: 134217728 cycle 17: 268435456 cycle 18: 536870912 cycle 19: 1073741824 cycle 20: 2147483648 ``` This shouldn't be suitable for the most cases. To reduce the allocation, we need to increase linearly for adjusting of allocating memory. Signed-off-by: Hiroshi Hatake <[email protected]>
- Loading branch information