Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pack: increase buffer reallocation for higher performance (fix #8492)
When converting from msgpack to raw JSON or sds-json, the reallocation strategy is very convervative to keep the memory usage very low, but in most of scenarios this lead to more fragmentation and high CPU usage. This patch changes the memory reallocation with an exponential strategy for better performance. Kudos to @LukasJerabek and @lecaros for helping to troubleshoot and indentify the root cause of this issue. Signed-off-by: Eduardo Silva <[email protected]>
- Loading branch information