Searched hist:"396 e3dfb9ceaabd07a9a9e3e84b35efae85e1831" (Results 1 – 2 of 2) sorted by relevance
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | DataContainer.h | 396e3dfb9ceaabd07a9a9e3e84b35efae85e1831 Thu Dec 01 01:27:17 UTC 2022 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Switch from an embedded to a separately allocated small buffer.
This saves 16 bytes in the class vs. the old size, but more importantly allows us to avoid allocating VMCaches and wasting an entire page for any attribute larger than 32 bytes; instead, attributes can be up to 1024 bytes before we allocate a full page for them.
Unfortunately small files cannot take advantage of this optimization right now as the cache is always used for them. I added a TODO about this.
|
H A D | DataContainer.cpp | 396e3dfb9ceaabd07a9a9e3e84b35efae85e1831 Thu Dec 01 01:27:17 UTC 2022 Augustin Cavalier <waddlesplash@gmail.com> ramfs: Switch from an embedded to a separately allocated small buffer.
This saves 16 bytes in the class vs. the old size, but more importantly allows us to avoid allocating VMCaches and wasting an entire page for any attribute larger than 32 bytes; instead, attributes can be up to 1024 bytes before we allocate a full page for them.
Unfortunately small files cannot take advantage of this optimization right now as the cache is always used for them. I added a TODO about this.
|