Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove a nasty iteration causing big slow down
authorTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Fri, 19 Jul 2013 09:52:41 +0000 (11:52 +0200)
committerTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Fri, 19 Jul 2013 09:52:41 +0000 (11:52 +0200)
commit525b02e6df5982c1c4d88e06df1e34e46a2cbd4e
treed9867c08777cb1c1270a3f67a6e4669738952fe6
parent6cf02417ed3c37ace8b8fba16f37c0aba1d7f70c
remove a nasty iteration causing big slow down

Oh, I found lmm_constraint_used(). Now we use this function instead of
nasty iteration.

$ ./examples/msg/cloud/scale ../examples/platforms/g5k.xml

The output of the old code:
duration 1.835514
duration 1.934927
duration 2.011892
duration 1.906476
duration 1.944293
duration 1.922941
duration 2.000016
duration 1.944532
duration 1.978881
duration 1.901449

The output of the new code:
duration 0.294958
duration 0.298755
duration 0.304680
duration 0.296415
duration 0.301704
duration 0.310724
duration 0.303856
duration 0.304807
duration 0.311928
duration 0.303926
src/surf/workstation.c