Opened 9 years ago

Last modified 4 years ago

#2823 new enhancement

Improve load time for pages with [TOC]

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


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 (0)

Change History (6)

comment:1 Changed 9 years ago by athomas

  • Owner changed from athomas to jouvin

comment:2 Changed 7 years ago by rjollos

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

comment:3 Changed 7 years ago by rjollos

  • Priority changed from high to normal

comment:4 Changed 7 years ago by rjollos

  • Priority changed from normal to low

comment:5 Changed 6 years ago by hasienda

  • Keywords TOC replace performance PageOutline added

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:

comment:6 Changed 4 years ago 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 Comment

Modify Ticket

as new The owner will remain jouvin.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.