Backport pr #81 into 0.9.x

Fixes #35.
On my way, will do today. Thanks!
26 авг. 2014 г. 3:11 пользователь "Jason Dixon" <notifications@github.com>
написал:

> In whisper.py:
>
> >    #Create a packed string for each contiguous sequence of points
> >    packedStrings = []
> >    previousInterval = None
> >    currentString = ""
> > -  for (interval,value) in alignedPoints:
> > +  for i in xrange(0,len(alignedPoints)):
> > +    #take last point in run of points with duplicate intervals
> > +    if i+1 < len(alignedPoints) and alignedPoints[i][0] == alignedPoints[i+1][0]:
> > +      continue
>
> Can you change the above lines to store len(alignedPoints) in
> lenAlignedPoints like @timob <https://github.com/timob> does in L657 of
> #81 <https://github.com/graphite-project/whisper/pull/81>? I imagine that
> has to be a bit more efficient.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/graphite-project/whisper/pull/89/files#r16690861>.
>