diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-10-11 08:38:37 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2018-10-11 08:45:04 -0400 |
commit | dada4e36e6d9a5c4b41bbe1f68389520e7c59ace (patch) | |
tree | 27f3d5451fad7a6c2157965af811a65898704054 /src/rebar_prv_deps.erl | |
parent | af5cecd8eec9692f43d04ad53c8f28734012b873 (diff) |
Optimize path handling
- Only set paths that need to be put as a priority
- Clean up paths before leaving API mode
The first point accounted for some performance cost, but the latter one
explains the 40% overhead in test runs: since rebar3 calls rebar3 a lot
with a bunch of fake apps, and that the new mechanism for path handling
by default does not _remove_ paths, it just _orders_ them, we would end
up in a situation where as the tests ran, more and more fake paths would
get added to the VM.
By the time the run was over, all path handling would take longer since
more paths needed filtering every time. By resetting paths at the end of
an API run, we prevent a given 'project' from polluting another one's
runtime and performance once the API successfully returns.
Diffstat (limited to 'src/rebar_prv_deps.erl')
0 files changed, 0 insertions, 0 deletions