Open lpatiny opened 7 months ago
I have an issue with the creation of molfile in memory. I'm creating 2500 molfile but in the memory heap snapshot it seems I have 9000000 entries
I think that in memory we keep all the different length of the string obtained during creation / concatenation:
https://github.com/cheminfo/openchemlib/blob/23bd145d76f2be249ea279415e2c59e54c965fba/src/main/java/com/actelion/research/chem/MolfileCreator.java#L201-L228
Does this makes sense ?
Is there a way to 'clean' the memory like doing something like JSON.parse(JSON.stringify(molfile)) ?
JSON.parse(JSON.stringify(molfile))
@targos WDYT ?
Need to check if flatstr (https://github.com/davidmarkclements/flatstr/blob/master/index.js) helps
If it does, I suggest to create an issue in the V8 tracker: https://bugs.chromium.org/p/v8/issues/list
I have an issue with the creation of molfile in memory. I'm creating 2500 molfile but in the memory heap snapshot it seems I have 9000000 entries
I think that in memory we keep all the different length of the string obtained during creation / concatenation:
https://github.com/cheminfo/openchemlib/blob/23bd145d76f2be249ea279415e2c59e54c965fba/src/main/java/com/actelion/research/chem/MolfileCreator.java#L201-L228
Does this makes sense ?
Is there a way to 'clean' the memory like doing something like
JSON.parse(JSON.stringify(molfile))
?@targos WDYT ?