eygraber
07/10/2025, 9:10 AMdarkmoon_uk
07/10/2025, 10:10 AMKlitos Kyriacou
07/10/2025, 11:17 AMList<Char>
where every element takes up typically 16 bytes (as it's a generic pointer) instead of 1 byte.eygraber
07/10/2025, 3:25 PMAnonymike
07/10/2025, 5:24 PMeygraber
07/11/2025, 4:33 AMKlitos Kyriacou
07/11/2025, 7:46 AMgetAllWithPrefix
with SortedMap.submap
(only available on the JVM).eygraber
07/11/2025, 3:38 PMAnonymike
07/11/2025, 3:52 PMeygraber
07/11/2025, 9:59 PMTreeMap.submap
outperformed getAllWithPrefix
0.015 ± 0.001 ms/op
> 0.075 ± 0.001 ms/op
but the Trie
outperformed the TreeMap
in all other operations by varying margins.
I didn't get the exact memory usage, but the TreeMap
was obviously much larger.eygraber
07/17/2025, 4:35 AM