jordanbrown0 / reg3

REG.PRG version 3
Other
2 stars 0 forks source link

Intern strings? #133

Open jordanbrown0 opened 4 years ago

jordanbrown0 commented 4 years ago

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.

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