mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
f85d8bfde9
Introduce a `size_t` field into the rax struct to track allocation size. Update the allocation size on rax insert and deletes. Return the allocation size when `raxAllocSize` is called. This size tracking is now used in MEMORY USAGE and MEMORY STATS in place of the previous method based on sampling. The module API allows to create sorted dictionaries, which are backed by rax. Users now also get precise memory allocation for them (through `ValkeyModule_MallocSizeDict`). Fixes #677. For the release notes: * MEMORY USAGE and MEMORY STATS are now exact for streams, rather than based on sampling. --------- Signed-off-by: Guillaume Koenig <knggk@amazon.com> Signed-off-by: Guillaume Koenig <106696198+knggk@users.noreply.github.com> Co-authored-by: Joey <yzhaon@amazon.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
71 lines
1.1 KiB
TOML
71 lines
1.1 KiB
TOML
# See https://github.com/crate-ci/typos/blob/master/docs/reference.md to configure typos
|
|
|
|
[files]
|
|
extend-exclude = [
|
|
"deps/",
|
|
# crc16_slottable is primarily pre-generated random strings.
|
|
"src/crc16_slottable.h",
|
|
]
|
|
|
|
[default.extend-words]
|
|
advices = "advices"
|
|
exat = "exat"
|
|
optin = "optin"
|
|
ro = "ro"
|
|
smove = "smove"
|
|
|
|
[type.c]
|
|
extend-ignore-re = [
|
|
"BA3E2571", # sha1.c
|
|
"D4C4DAA4", # sha1.c
|
|
"Georg Nees",
|
|
"\\[l\\]ist", # eval.c
|
|
"LKE", # test_rax.c
|
|
]
|
|
|
|
[type.tcl]
|
|
extend-ignore-re = [
|
|
"DUMPed",
|
|
]
|
|
|
|
[type.sv.extend-identifiers]
|
|
# sv = .h
|
|
module_gil_acquring = "module_gil_acquring"
|
|
|
|
[type.c.extend-identifiers]
|
|
ang = "ang"
|
|
clen = "clen"
|
|
fle = "fle"
|
|
module_gil_acquring = "module_gil_acquring"
|
|
nd = "nd"
|
|
ot = "ot"
|
|
|
|
[type.tcl.extend-identifiers]
|
|
fo = "fo"
|
|
oll = "oll"
|
|
stressers = "stressers"
|
|
|
|
[type.sv.extend-words]
|
|
# sv = .h
|
|
fo = "fo"
|
|
seeked = "seeked"
|
|
|
|
[type.c.extend-words]
|
|
arange = "arange"
|
|
fo = "fo"
|
|
frst = "frst"
|
|
limite = "limite"
|
|
pn = "pn"
|
|
seeked = "seeked"
|
|
tre = "tre"
|
|
ws = "ws"
|
|
|
|
[type.systemd.extend-words]
|
|
# systemd = .conf
|
|
ake = "ake"
|
|
|
|
[type.tcl.extend-words]
|
|
fo = "fo"
|
|
lst = "lst"
|
|
tre = "tre"
|