Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to free up memory? #17

Open
zhang1frank opened this issue Oct 1, 2017 · 2 comments
Open

How to free up memory? #17

zhang1frank opened this issue Oct 1, 2017 · 2 comments
Assignees

Comments

@zhang1frank
Copy link

Is it possible to delete keys from an EMS array object that uses key-index mapping? Presumably, this would free up memory when certain items are no longer needed. Nodejs 'delete' does not do anything here as far as I can tell.

@mogill
Copy link
Owner

mogill commented Oct 1, 2017

Delete was left out for reasons which are no longer relevant. My apologies for the missing function, expect a release including a delete primitive in a few days, until then you can simply set the value to undefined, which effectively frees the over-written value.

@mogill
Copy link
Owner

mogill commented Oct 27, 2017

I'm still working on this, but while implementing delete I found an unrelated bug which my schedule has kept me from finishing. The fix I intended to address this issue (freeing memory) also exposed possible memory leaks (#18). Both of these are problems which should be addressed first, my apologies for the additional delays but it will give delete the correct semantics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants