bn: faster literal comparison