Scaling for faster macroparticle simulation in longitudinal multiparticle dynamics