[erlang-patches] load native code for early modules

Raimo Niskanen <>
Tue Jul 13 13:45:45 CEST 2010


On Sun, Jul 11, 2010 at 08:00:39PM +0200, Paul Guyot wrote:
> Hello,
> 
> The native chunks of modules loaded before the code server are never loaded, which makes it pretty pointless to natively compile them in the first place (with --enable-native-libs). A patch that loads them just after the code server is started can be found here:
> 
> git fetch git://github.com/pguyot/otp.git pg/load-native-code-for-early-modules

Thank you, looks fine! It will be included in 'pu'.

> 
> http://github.com/pguyot/otp/commit/2637b8a24e2d9ba3653e580f21a70976915dc201
> 
> As a side effect, this patch will decrease the load time of dialyzer on installations configured with --enable-native-libs. Indeed, dialyzer natively recompiles modules including some that were loaded before the code server (such as lists, gb_trees, etc.).
> 
> Regards,
> 
> Paul
> -- 
> Semiocast                    http://semiocast.com/
> +33.175000290 - 62 bis rue Gay-Lussac, 75005 Paris
> 
> 
> ________________________________________________________________
> erlang-patches (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
> 

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB


More information about the erlang-patches mailing list