-
Notifications
You must be signed in to change notification settings - Fork 42
Memory Leak (?) while compiling #339
Copy link
Copy link
Open
Labels
Milestone
Description
The build times on one of my API (readonly) contracts recently has increased by 25x.
I have reproduced the issue in a more simple contract, which can be found here:
https://github.com/aaroncox/cdt-leak-contract
Running make will trigger the build, which takes ~3 minutes to complete on a XeonW w/ 128gb of RAM. During the build memory usage of clang-9 peaks at ~20 GB, which I assume is the cause of the slowdown.
Is this to be expected when importing these system headers, or is there some kind of memory leak occurring during the build that's causing this runaway resource usage?
I am leaning towards a bug causing a memory leak, since this one change seems to resolve the issue for some reason:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo