We use some bit twiddling operations for setting some flags on large chunks in actor heaps. Before this commit, the functionality was implemented with a ternary operator which would result in a branch.
This commit changes the logic to use bit shifts instead to avoid the branching.
We use some bit twiddling operations for setting some flags on large chunks in actor heaps. Before this commit, the functionality was implemented with a ternary operator which would result in a branch.
This commit changes the logic to use bit shifts instead to avoid the branching.