When to switch from direct to limit comparison