Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dynamic cast without checking result is slow and useless. Use static cast.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 15 Feb 2019 14:04:15 +0000 (15:04 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 15 Feb 2019 15:41:36 +0000 (16:41 +0100)
commit58bb531bcf303874a5e1356c750423a8490617e9
tree7918e7ccb06f468acc5460162b97c1c2fea6a2eb
parent83f28c874af4faaeaaa19571afc2cd52c801da39
Dynamic cast without checking result is slow and useless. Use static cast.

It brings for example > 1.2 speedup on s4u-dht-kademlia.
include/simgrid/s4u/Engine.hpp
src/instr/instr_paje_containers.cpp
src/kernel/activity/MailboxImpl.cpp
src/plugins/host_energy.cpp
src/plugins/host_load.cpp
src/s4u/s4u_Comm.cpp
src/s4u/s4u_Exec.cpp
src/s4u/s4u_Io.cpp
src/simix/ActorImpl.cpp
src/smpi/internals/smpi_global.cpp
src/xbt/config.cpp