Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free strings objects instead of dismissing
Instead of dismissing with madvise(MADV_DONTNEED) we free it via the allocator. This has advantage that it allows the allocator to accumulate free buffers to free whole pages. While madvise is nop if the buffer is less than a page. The allocator overhead is minimal, because raw strings (sds) use the fast path. Signed-off-by: Vadym Khoptynets <vadymkh@amazon.com>
- Loading branch information