There is a growing evidence that several globular clusters must contain
multiple stellar generations, differing in helium content. This hypothesis has
helped to interpret peculiar unexplained features in their horizontal branches.
In this framework we model the peaked distribution of the RR Lyr periods in M3,
that has defied explanation until now. At the same time, we try to reproduce
the colour distribution of M3 horizontal branch stars. We find that only a very
small dispersion in mass loss along the red giant branch reproduces with good
accuracy the observational data. The enhanced and variable helium content among
cluster stars is at the origin of the extension in colour of the horizontal
branch, while the sharply peaked mass loss is necessary to reproduce the
sharply peaked period distribution of RR Lyr variables. The dispersion in mass
loss has to be <~ 0.003 Msun, to be compared with the usually assumed values of
~0.02 Msun. This requirement represents a substantial change in the
interpretation of the physical mechanisms regulating the evolution of globular
cluster stars.Comment: Accepted for publication in The Astrophysical Journa