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.
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.