mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Simulator programs and utilities for automatic differentiation.
say 99.95% of all time: premature optimization is the root of all evil. in this case it turned out that iterating over a std::unordered_map is very slow and that this is a quite common operation in ebos. Fortunately the fix for this problem is very simple: use the tree-based std::map instead of the hash function based std::unordered_map. on SPE9 this yielded a performance improvement of about 10% on my machine... |
||
---|---|---|
applications/ebos |