> From: Paul Szczepanek [mailto:[email protected]]
> Sent: Wednesday, 29 May 2024 12.23
> 
> Add a new utility header for compressing pointers. The provided
> functions can store pointers as 32-bit or 16-bit offsets.
> 
> The compression takes advantage of the fact that pointers are
> usually located in a limited memory region (like a mempool).
> We can compress them by converting them to offsets from a base
> memory address. Offsets can be stored in fewer bytes (dictated
> by the memory region size and alignment of the pointer).
> For example: an 8 byte aligned pointer which is part of a 32GB
> memory pool can be stored in 4 bytes.
> 
> Suggested-by: Honnappa Nagarahalli <[email protected]>
> Signed-off-by: Paul Szczepanek <[email protected]>
> Signed-off-by: Kamalakshitha Aligeri <[email protected]>
> Reviewed-by: Honnappa Nagarahalli <[email protected]>
> Reviewed-by: Nathan Brown <[email protected]>
> Reviewed-by: Jack Bond-Preston <[email protected]>
> ---

Acked-by: Morten Brørup <[email protected]>

Reply via email to