diff options
author | Daniel Schadt <kingdread@gmx.de> | 2025-04-11 10:13:11 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2025-04-11 10:13:11 +0200 |
commit | 170d9413b4d5d4b2c43f53343be4e43350e3e83f (patch) | |
tree | bea54572f654cc639d2bd2bd12a80355243ecf7b /src/block.rs | |
parent | eecd8fb23edb86223f8e3c6ac18df7c1dc596151 (diff) | |
download | zears-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/block.rs')
0 files changed, 0 insertions, 0 deletions