ELIFE-ASU / Inform

A cross platform C library for information analysis of dynamical systems
https://elife-asu.github.io/Inform
MIT License
21 stars 3 forks source link

Function-Call Overhead #42

Closed dglmoore closed 6 years ago

dglmoore commented 7 years ago

The entropy measures are written for maximum code reuse. The advantage of this is that it makes maintenance easier, but it comes with a cost. For example, inform_shannon uses inform_shannon_si in a tight loop. The function-call overhead means we loose performance.

Maintainability is a higher priority than performance, but the gain in performance (~2x) is worth the mild loss in maintainability.