Details
-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
0
Description
Buffer allocates extra 4kb always irrespective of whether the memory we got was already aligned or not. DaveR suggests to use overloaded operator new which has been implemented in platform to leave it to jemalloc to figure this out. In case the memory allocated is already aligned to 4kb, we will save memory.
See slack:
https://couchbase.slack.com/archives/CDNGWKZ7D/p1696356526456259