recent checkins page speed improvements with hidng feature

speed improvemnt for checkin page according to ur earlier review
On Tue, Jun 24, 2014 at 01:58:16AM -0700, krishnatejaperannagari wrote:
> >              changes = branch.changes_summary(entry.revision)
> >              yield "".join(self.history_row_html(myself, entry, t, changes))
> >          yield "\n"
> > +        
> > +        yield "<form method='GET'>"
> > +        yield "<div class='newform'>\n"
> > +        if gitstart != 0:           
> > +            yield "<input type='submit' name='navigation' value='Previous' style='position:absolute;left:0px;'/>"
> 
> i am sorry i cant get  you. actually gitcount here means the number at which the page stopped(always a multiple of 10). i have changes the algorithm from what it was previously. everything works fine even now and the hiding feature is also tested
I mean, this could be greatly simplified by just having:

if gitcount - 10 >= 0:
   yield "<input type='submit' name='gitcount' value='" + (gitcount - 10) + '"/>"

if gitcount + 10 < len(interesting):
   yield "<input type='submit' name='gitcount' value='" + (gitcount + 10) + '"/>"

Cheers,

Jelmer