faster comparison for paramLengths (does not alloc memory)