Hi. I created a custom cellfactory which produces potentially many new columns (~100).
Many of the cells will be populated with empty strings (instead of missing values… customer preference).
In the interest of reducing memory consumption, is it OK to create a single instance StringCell emptyStringCell = StringCell("")
and reuse that instance for all cells that require an empty string?
I implemented it this way and it seems to work fine, but I’m wondering whether there might be any consequences I’m not aware of, or whether this might be discouraged for some reason.
Thanks