We will have to invalidate the cache if an operation mutates the stored value
If the int is cached for both then eq can use it for a major speedup. This violates encapsulation especially if the comparison is across BitVector implementation types. Maybe expose an is_cached interface?
We will have to invalidate the cache if an operation mutates the stored value
If the int is cached for both then eq can use it for a major speedup. This violates encapsulation especially if the comparison is across BitVector implementation types. Maybe expose an is_cached interface?