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

is there a way to tell GC how big is the referenced object? #68

Open
sidorares opened this issue Jan 10, 2016 · 0 comments
Open

is there a way to tell GC how big is the referenced object? #68

sidorares opened this issue Jan 10, 2016 · 0 comments

Comments

@sidorares
Copy link

Something like AdjustAmountOfExternalAllocatedMemory()?

I'm using weak to automatically free X11 objects (tracking pairs of XCreatePixmap / XFreePixmap, for example - https://github.com/sidorares/ntk/blob/a3321273985c1d8df8d95b7e27b968c127377416/lib/pixmap.js#L24-L29 ) but because local object is basically an int, it takes a lot of time until it's GCed - id like to be able to make a hint that this objects references relatively heavy thing

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

No branches or pull requests

1 participant