-
Notifications
You must be signed in to change notification settings - Fork 75
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
Support for R #44
Comments
Here's what I found out about R memory management. TL;DR: it only calls malloc for objects > 128 bytes (http://adv-r.had.co.nz/memory.html).
I wonder if it's possible to interpose on the small vector pool operations. |
If I understand that excerpt and the code I wrote correctly, the code should create |
I confess to not being able read R code well; however when I run it under mesh what I see is:
you can ignore most of the top spew (that is Mesh reporting how much memory it used each time you spawn The high-water mark (HWM) of mesh is only about 800 KB. When I turn up the rate we mesh at by setting We should print out better diagnostics here, but my rough guess is that the program either isn't experiencing fragmentation, or at least isn't experiencing it in a way mesh can recover from (e.g. if all pages are 60% full we have rather significant fragmentation but we won't be able to mesh). |
I've tried to use Mesh in combination with R and unfortunately didn't see any gains. As I have no experience I might be overlooking something. The script in this gist creates and destroys some objects which should run using only base R. Am I missing something? Can I do something to make improvements somewhere?
The text was updated successfully, but these errors were encountered: