aboutsummaryrefslogtreecommitdiff
path: root/src/accessor.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-04-11 10:13:11 +0200
committerDaniel Schadt <kingdread@gmx.de>2025-04-11 10:13:11 +0200
commit170d9413b4d5d4b2c43f53343be4e43350e3e83f (patch)
treebea54572f654cc639d2bd2bd12a80355243ecf7b /src/accessor.rs
parenteecd8fb23edb86223f8e3c6ac18df7c1dc596151 (diff)
downloadzears-170d9413b4d5d4b2c43f53343be4e43350e3e83f.tar.gz
zears-170d9413b4d5d4b2c43f53343be4e43350e3e83f.tar.bz2
zears-170d9413b4d5d4b2c43f53343be4e43350e3e83f.zip
move hot comparison out of E::eval
Most of the time, especially in the hot loop, we're falling into the lower branch with j != -1. Doing this check in advance gives around 10% speedup. Now, the code for j == -1 is directly in e(), as we never use E::new(-1, ...) anyway.
Diffstat (limited to 'src/accessor.rs')
0 files changed, 0 insertions, 0 deletions