During cargo build
there's barely no change in the command top
output:
SharedLibs: 557M resident, 124M data, 53M linkedit.
MemRegions: 664581 total, 5053M resident, 338M private, 5487M shared.
PhysMem: 20G used (3078M wired, 3657M compressor), 3162M unused.
VM: 391T vsize, 4285M framework vsize, 109702(0) swapins, 286430(0) swapouts.
Here's Activity Monitor during cargo build
: