Open jordanbrown0 opened 4 years ago
Very preliminary testing shows that there might be a gain to be had.
For a particular import, initial memory stats said 48-49M after loading, for both interned and non-interned implementations. However, after a while for some reason the non-interned version had dropped to 32M but the interned version had dropped to 28M.
Does JS - and in particular node.js - intern strings? If not, we might want to make a point of interning them at DB load time and at record update/add time - at least the field names.