1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

fs: remove thread_local storage

If we are not zero-filling containers then the overhead of allocating them
on each use is negligible.  The effect that the thread_local containers
were having on RAM usage was very non-negligible.

Use dynamic containers (members or stack objects) for better control
of object lifetimes and much lower peak RAM usage.  They're a tiny bit
faster, too.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2018-11-08 23:36:24 -05:00
Ursprung e3247d3471
Commit a676928ed5
2 geänderte Dateien mit 8 neuen und 12 gelöschten Zeilen
+1
Datei anzeigen
@@ -95,6 +95,7 @@ namespace crucible {
iterator m_end = nullptr;
friend struct BtrfsIoctlLogicalInoArgs;
} m_iors;
BtrfsDataContainer m_container;
};
ostream & operator<<(ostream &os, const BtrfsIoctlLogicalInoArgs &p);