Ticket #2823 (new enhancement)

Opened 5 years ago

Last modified 8 months ago

Improve load time for pages with [TOC]

Reported by: anonymous Assigned to: jouvin
Priority: low Component: TracHacks
Severity: normal Keywords: TOC replace performance PageOutline
Cc: Trac Release: 0.10

Description

The load time for a page with a TOC header is around 5s seconds compared to less than 1s for a page without the TOC menu.

Attachments

Change History

03/31/08 14:56:09 changed by athomas

  • owner changed from athomas to jouvin.

09/06/09 01:01:43 changed by rjollos

  • summary changed from Improve TOC response time to Improve load time for pages with [TOC].

09/06/09 01:24:19 changed by rjollos

  • priority changed from high to normal.

09/06/09 01:25:02 changed by rjollos

  • priority changed from normal to low.

08/19/10 20:45:28 changed by hasienda

  • keywords set to TOC replace performance PageOutline.

I've not done any test or even serious profiling on that issue, but recently I recognized that Trac (0.12) has a build-in [[PageOutline]] macro that might give better performance.

I've used it to successfully make TOC macro obsolete in my Trac application, since it can be configured to be a near-drop-in-replacement for TOC. I see this is present even in 0.10 here according to the output of WikiMacros macro:

http://trac-hacks.org/wiki/WikiMacros#AvailableMacros

10/03/12 10:51:22 changed by hasienda

It is now part of our migration plan to Trac 1.0, so TocMacro will get replaced by PageOutline from Trac core.


Add/Change #2823 (Improve load time for pages with [TOC])




Change Properties
Action