[fpc-pascal] fpmake question

Bernd prof7bit at googlemail.com
Thu Jun 14 19:54:56 CEST 2012


Ok, I'm slowly making progress. The Targets.AddUnit() method needs the
unit file name (with extension).

But there is another problem. fpmake is sloooooooowwww.

bernd at t40:~/proj/git_torchat_laz/src/core\ $ time fppkg build
Start building package torchat-core for target i386-linux.
       Compiling lnet-0.6.5/lcommon.pas
       Compiling lnet-0.6.5/levents.pas
       Compiling lnet-0.6.5/lnet.pas
       Compiling tc_interface.pas
       Compiling tc_misc.pas
       Compiling tc_protocol.pas
       Compiling tc_prot_add_me.pas
       Compiling tc_prot_client.pas
       Compiling tc_prot_message.pas
       Compiling tc_prot_not_implemented.pas
       Compiling tc_prot_not_implemented.pas
       Compiling tc_prot_ping.pas
       Compiling tc_prot_pong.pas
       Compiling tc_prot_profile_avatar_alpha.pas
       Compiling tc_prot_profile_avatar.pas
       Compiling tc_prot_profile_name.pas
       Compiling tc_prot_profile_text.pas
       Compiling tc_prot_remove_me.pas
       Compiling tc_prot_status.pas
       Compiling tc_prot_version.pas
       Compiling tc_buddy.pas
       Compiling tc_client.pas
       Compiling tc_config.pas
       Compiling tc_conn.pas
       Compiling tc_const.pas
       Compiling tc_msgqueue.pas
       Compiling tc_roster.pas
       Compiling tc_templist.pas
       Compiling tc_tor.pas
[100%] Built target torchat-core

real	0m16.933s
user	0m6.928s
sys	0m1.600s

There is something not quite right in fpmkunit, there is a Sleep(100)
in it that makes it slow down extremely:
Line 1289 in packages/fpmkunit/src/fpmkunit.pp

    else
    begin
      // no data, wait 100 ms
      Sleep(100);
    end;

making this a Slep(1) or even removing it completely makes  the above
run more than two times faster:

bernd at t40:~/proj/git_torchat_laz/src/core\ $ time fppkg build
Start building package torchat-core for target i386-linux.
  [...]
[100%] Built target torchat-core

real	0m6.680s
user	0m4.280s
sys	0m1.216s



More information about the fpc-pascal mailing list