LGFae / swww

A Solution to your Wayland Wallpaper Woes
GNU General Public License v3.0
2.38k stars 70 forks source link

Zero copy serialization #305

Closed LGFae closed 6 months ago

LGFae commented 6 months ago

By mmaping the relevant bytes at the correct offsets, we don't need to copy any str or Boxed<[u8]>.

Furthermore, we can serialize directly onto the memory mapped file, thus not needing to copy onto an intermediate buffer first.