more efficient state for DALM.
modify DALMState to use the DALM compare function.