speedup CastelnuovoMumfordRegularity in quasi-zero case