-
Notifications
You must be signed in to change notification settings - Fork 93
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
Memory leak for using atoms as keys #256
Comments
Hi @matehat. It's first good issue since this project started ;) Thanks a lot, i think we need use binary keys. If you want change this by PR will be good, or i can find time on holidays. |
I (or someone else from my team) may create a PR soon to fix this. Thanks for your reply! |
thanks man! I will be happy merge it! |
Has anyone addressed this already? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I've noticed that Tirexs will convert all keys (not just top-level, but deep in a record's structure) to atoms.
tirexs/lib/tirexs/http.ex
Lines 360 to 362 in f798d8c
There is no way for a user of the library to indicate that keys should stay as binary, because some part of an indexed document is highly-dynamic.
As mentioned in multiple places around the Erlang community, like in this book,
Can you change the default behavior, or consider passing an option to opt out of this? Otherwise using this library makes any system vulnerable to memory exhaustion overtime.
The text was updated successfully, but these errors were encountered: