Costa Tsaousis 080e0aee27 Faster queries (#12988) 2 years ago
..
tests 81e2f8da65 Reuse the SN_EXISTS bit to track anomaly status. (#11154) 3 years ago
Makefile.am 675383b26a Makefile.am files indentation (#7252) 5 years ago
README.md c7f2647a62 Docs: Removed Google Analytics tags (#12145) 3 years ago
storage_number.c 080e0aee27 Faster queries (#12988) 2 years ago
storage_number.h 080e0aee27 Faster queries (#12988) 2 years ago

README.md

Netdata storage number

Although netdata does all its calculations using long double, it stores all values using a custom-made 32-bit number.

This custom-made number can store in 29 bits values from -167772150000000.0 to 167772150000000.0 with a precision of 0.00001 (yes, it's a floating point number, meaning that higher integer values have less decimal precision) and 3 bits for flags.

This provides an extremely optimized memory footprint with just 0.0001% max accuracy loss.