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

"Super-transient" maps #210

Open
JoshKarpel opened this issue Apr 14, 2020 · 0 comments
Open

"Super-transient" maps #210

JoshKarpel opened this issue Apr 14, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JoshKarpel
Copy link
Contributor

While working on https://github.com/msu-coinlab/pymoo/pull/46 , it occurred to me that it would be convenient to be able to mark a map as "super-transient": as soon as it's iterated, it gets removed. This would help in situations where the user is not in manual control of map creation and some other library is driving HTMap around, probably creating lots of small, short maps that it will never use again (and if they failed, the library needs to fail as well).

The trick thing here is deciding what the conditions are for removing the map (what constitutes "being used"? Iterating to completion clearly counts, but what if I access each component individually once?), and what this mode should be called (remove_once_used = True? remove_after_consumed = True)?

@JoshKarpel JoshKarpel added the enhancement New feature or request label Apr 14, 2020
@JoshKarpel JoshKarpel self-assigned this Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant