load native code for early modules

Paul Guyot pguyot@REDACTED
Sun Jul 11 20:00:39 CEST 2010


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

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



More information about the erlang-patches mailing list