4 ms·
PS please note that there is no memset nor any other mean to zero initialize the elements. So the code appears to have a bug anyway.
by antirez 10y ago
PS please note that there is no memset nor any other mean to zero initialize the elements. So the code appears to have a bug anyway.
- AlexeyBrin 10y agoCorrect, this is a bug. calloc will better mimic the way C++ std::vector works.