LibreDWG / libredwg

Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
https://savannah.gnu.org/projects/libredwg/
GNU General Public License v3.0
993 stars 235 forks source link

switch to mmap for less memory #242

Open rurban opened 4 years ago

rurban commented 4 years ago

When reading or writing files rather use mmap() than memory buffers to save memory. DWG's can get quite big and we already have to keep a copy of the Dwg_Data structure in memory, plus it's input dat and output dat buffers.

problems: compat lib needed on windows, there are a few. But basically we just need two calls, which are trivial to implement. I already wrote that for some perl mmap library some decades ago.

rurban commented 4 years ago

See branch work/mmap