atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
230 stars 31 forks source link

dpp + libuv: high memory usage. #250

Open SrMordred opened 4 years ago

SrMordred commented 4 years ago

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 commented 4 years ago

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.