Modify ↓
#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 18 years ago by
| Owner: | changed from Alec Thomas to jouvin |
|---|
comment:2 Changed 16 years ago by
| Summary: | Improve TOC response time → Improve load time for pages with [TOC] |
|---|
comment:3 Changed 16 years ago by
| Priority: | high → normal |
|---|
comment:4 Changed 16 years ago by
| Priority: | normal → low |
|---|
comment:5 Changed 15 years ago by
| Keywords: | TOC replace performance PageOutline added |
|---|
comment:6 Changed 13 years ago by
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 9 years ago by
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
I've not observed this issue. If there's a specific page with a slow load time, please point to it.
Note: See
TracTickets for help on using
tickets.



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