I need to add new worksheet from dataTable. For this task I use ClosedXML:
workbook.Worksheets.Add(dataTable);
workbook.Save();
workbook = new XLWorkbook(filePath); //reload file to avoid exception at next saving
My process used 128 Mb of memory but after Workbook.Save()
this number is rised to 382 Mb. After I've added next worksheet memory usage rised from 464 Mb to 619 Mb. But actual file at this point was 1.6 Mb.
What could be the reason of this?