Fixed at revision 9987 - Accelerated cutpoint matching for cutpoints that consist of a single class. With this implementation, parsing of test template derived from CollectionSpace "object.html" with 175 class-based cutpoints is nearly 10 times faster - parse time reduced from around 500ms to around 70ms. Should people be found using many id-based selectors these could be accelerated too.
The "cutpoint system" for the renderer was never really designed to be used, and as a result was implemented with a cutpoint matching algorithm with very poor time complexity. Now that in CollectionSpace we have acquired a template with 175 cutpoints, this is degrading performance significantly. See http://issues.collectionspace.org/browse/CSPACE-2569 and http://wiki.collectionspace.org/display/collectionspace/Performance+analysis+from+the+Client-side