Modify

Opened 6 years ago

Last modified 22 months 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

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

Change History (6)

comment:1 Changed 6 years ago by athomas

  • Owner changed from athomas to jouvin

comment:2 Changed 5 years ago by rjollos

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

comment:3 Changed 5 years ago by rjollos

  • Priority changed from high to normal

comment:4 Changed 5 years ago by rjollos

  • Priority changed from normal to low

comment:5 Changed 4 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:

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

comment:6 Changed 22 months 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

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.