Interval simplification relies on constant folding, which uses heavily reference tracking.
Taking into account that interval boundaries are expressions of a specific form, both constant folding and its use of reference tracking can be simplified/optimized to improve optimization performance.
svilen.mihaylov@mongodb.com david.percy@mongodb.com I remember discussing some ideas with you, could you please add some notes here?