Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Setting DataType for entire column leads to huge memory consumption [9486]

$
0
0
Hi guys,

Just have found a weird bug:
1. Create a workbook and a worksheet in it.
2. Set data type for entire column to Text.
3. This operation adds around 350Mb (on my x64 machine) to the process memory for EVERY column.

The code sample:
```
var workbook = new XLWorkbook();
var worksheet = workbook.Worksheets.Add("Sample Sheet");
// Adds around 350Mb
worksheet.Column(1).DataType = XLCellValues.Text;
// Adds ANOTHER 350Mb
worksheet.Column(2).DataType = XLCellValues.Text;
```

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>