[erlang-questions] How to compile faster ?
Zhongzheng Liu
liuzhongzheng2012@REDACTED
Wed May 18 04:42:16 CEST 2016
Hi Junka:
My develop environment is in Windows.
All the modules are in the same application.
I am using compile:file/2 to compile them.
I wrote a Erlang script spawned 10+ process to compile the modules
in parallel, which make CPU usage 100% during compling in my PC.
Using my script is faster than rebar 2. Rebar 2 make CPU usage on ~70%.
Current compile options are [verbose,report,debug_info,
warnings_as_errors,{inline_size,0}].
Can it be faster if I add or remove some options?
Or any other idea to make compiling faster?
> Ho do you compile? Do you use a makefile or rebar or something else?
> Also, are all those modules in the same application/src file or in
> different applications?
>
> On 17/05/2016 10:08, Zhongzheng Liu wrote:
> > Hi maillist:
> >
> > I have a erlang project with ~500 modules, all modules including a hrl
> > file which contains over 1000 record definition (generated by
> > protobuf).
> >
> > It takes a long time to compile this project. Is there any compile
> > option which can make compiling faster?
> >
> >
> > I don't care the performance of the code running (because I use it in
> > develop environment only),
> > and I don't want to change the source code (cannot spit the big hrl
> > to smaller files).
> >
> >
> > Thank you.
> > _______________________________________________
> > erlang-questions mailing list
> >
> > http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list