Homec4science

performance improvement through avoiding function call and dereference overhead

Authored by Axel Kohlmeyer <akohlmey@gmail.com> on May 9 2017, 21:38.

Description

performance improvement through avoiding function call and dereference overhead

  • make i_to_potl() and ij_to_potl() functions inline and const
  • don't dereference inside the functions, but cache, if possible in external variables

> up to 15% speedup.

Details

Committed
Axel Kohlmeyer <akohlmey@gmail.com>May 9 2017, 21:38
Pushed
jungeOct 19 2017, 09:53
Parents
rLAMMPS9cd994f57c70: fix issues with potential file parser
Branches
Unknown
Tags
Unknown

Event Timeline

Axel Kohlmeyer <akohlmey@gmail.com> committed rLAMMPS6c5edf6c709e: performance improvement through avoiding function call and dereference overhead (authored by Axel Kohlmeyer <akohlmey@gmail.com>).May 9 2017, 21:38