Page 1 of 1

Multi-threading C++ compiler wrappers

Posted: Thu Apr 18, 2019 5:46 pm
by Tracer
Hello!

After I closed C++ Builder (10.3.1) I noticed that I cannot delete the test project (entire folder) I used to benchmark TwinCompile (it was still in use). Then I opened Task Manager and noticed 16 "Multi-threading C++ compiler wrapper. (32 bit)" processes. I suppose it is because I have 16 core CPU. But still, I would expect these processes to end after I exit C++ Builder. Only after I manually ended those processes I was able to delete the folder.

A bug?

Re: Multi-threading C++ compiler wrappers

Posted: Thu Apr 18, 2019 6:29 pm
by Tracer
I just noticed the option "close executors when exiting IDE" that solves this problem. Why is this not set to true by default?

Re: Multi-threading C++ compiler wrappers

Posted: Thu Apr 18, 2019 8:14 pm
by jomitech
By leaving them open, the in-memory cache is preserved, so that the compiler does not have to go back to the disk to pull the unchanged files, but can get them from memory.