mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 11:09:55 +00:00
Compress erlcinfo file less agressively
Optimizing for best compression could be very slow for large projects, so optimize rather for the speed. erlcinfo file isn't that huge anyway and moreover difference between levels 2 and 9 isn't that big in practice (although there's quite big difference between level 2 and no compression at all).
This commit is contained in:
parent
9e33daa6fa
commit
a25932ba6a
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ store_erlcinfo(G, InclDirs) ->
|
|||
Es = lists:map(fun(E) -> digraph:edge(G, E) end, digraph:edges(G)),
|
||||
File = erlcinfo_file(),
|
||||
ok = filelib:ensure_dir(File),
|
||||
Data = term_to_binary(#erlcinfo{info={Vs, Es, InclDirs}}, [{compressed, 9}]),
|
||||
Data = term_to_binary(#erlcinfo{info={Vs, Es, InclDirs}}, [{compressed, 2}]),
|
||||
ok = file:write_file(File, Data).
|
||||
|
||||
%% NOTE: If, for example, one of the entries in Files refers to
|
||||
|
|
Loading…
Reference in a new issue