allocate less memory when using intervals