Improve render performance of large wiki pages
Improve render performance of large wiki pages

Compile often used regexps only once outside of the loop.

This commit improves the performance of large wiki pages with many, many references.

dreampet/gitlab,iiet/iiet-git,axilleas/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,axilleas/gitlabhq