Modify

Opened 9 years ago

Closed 2 weeks ago

Last modified 2 weeks ago

#2823 closed enhancement (worksforme)

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

comment:1 Changed 9 years ago by Alec Thomas

Owner: changed from Alec Thomas to jouvin

comment:2 Changed 7 years ago by Ryan J Ollos

Summary: Improve TOC response timeImprove load time for pages with [TOC]

comment:3 Changed 7 years ago by Ryan J Ollos

Priority: highnormal

comment:4 Changed 7 years ago by Ryan J Ollos

Priority: normallow

comment:5 Changed 7 years ago by Steffen Hoffmann

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 (WikiMacros#AvailableMacros).

Last edited 2 weeks ago by Ryan J Ollos (previous) (diff)

comment:6 Changed 4 years ago by Steffen Hoffmann

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

comment:7 Changed 2 weeks ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

I've not observed this issue. If there's a specific page with a slow load time, please point to it.

Modify Ticket

Action
as closed The owner will remain jouvin.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.