I saw that git pages on forge-allura.apache.org were slow, so I looked at stats.log and saw that the sidebar was the slowest part. I did some additional digging and found 2 specific areas for improvement:
@LazyPropertysince it is called many times inside a loop in
sidebar_menuonly requests a certain number of branches, pass that "limit" all the way through to
branchesmethod so that
is_valid()is only called a minimum number of times needed.
In addition to those changes, generalize and apply the same approach to the tags. And also check ForgeHg to see if mercurial can benefit the same way.
Log in to post a comment.