-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Less Heap Usage in Hashtable #57701
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
Less Heap Usage in Hashtable #57701
Conversation
@@ -644,15 +628,13 @@ cdef class {{name}}HashTable(HashTable): | |||
int ret = 0 | |||
{{c_type}} val, na_value2 | |||
khiter_t k | |||
{{name}}VectorData *ud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something very strange was going on here, where changing this to a non-pointer and assigning ud = uniques.data
then trying to pass that via reference to needs_resize
was failing. I think has something to do with Cython pointer/reference semantics, but rather than dive too deep figured it was trivial enough to just remove
Thanks @WillAyd |
* Hashtable cleanups * Remove unused imports * renamed .n -> size, .m -> capacity * size_t -> Py_ssize_t * revert needs_resize * remove unnecessary pointers * fix build issues * Removed ud variable * Fix ObjectVector issue * try setting NULL in dealloc * reset things * try smaller scope * Smaller scope * less change * remove unused
No description provided.