carrotdata / carrot-cache

In-Out-Process Java cache (L1/L2 off-heap, scalable, ZeroGC) with full SSD support
Apache License 2.0
3 stars 0 forks source link

[PERFORMANCE] Optimize UnsafeAccess #354

Closed VladRodionov closed 6 months ago

VladRodionov commented 6 months ago

This is very low level code, which in many methods does two checks: if it is debug mode and hardware byte order. This should be eliminated. We must have 4 implementations for two bytes order (little endian and big endian) and two modes: debug and normal.