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

dpp + libuv: high memory usage. #250

Open
SrMordred opened this issue Mar 26, 2020 · 1 comment
Open

dpp + libuv: high memory usage. #250

SrMordred opened this issue Mar 26, 2020 · 1 comment

Comments

@SrMordred
Copy link

SrMordred commented Mar 26, 2020

I tried to create bindings for libuv, so:

uv.dpp

module uv;
#include "libuv/uv.h"

d++ --preprocess-only uv.dpp

It start running with 200+-mb of memory usage, no errors.
Then it start to rise the memoy usage until it hit my pc limits (I have only 4gb on this machine so d++.exe got to 2.5gb of ram ), and never finishes the job.

So i´m not sure if its because my pc don´t have enough RAM to handle the job, or if libuv headers are causing some issue to dpp.

@atilaneves
Copy link
Owner

Tried it myself and didn't even have time to htop it to know how much RAM the process used. Ran htop first and did it again, and I think it went up to around 2GB in the whole 4s it took to run. You probably don't have enough RAM on that PC.

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

No branches or pull requests

2 participants