You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that every access of the Page Index /-/index loads and parses the markdown of every .md file in the repository to assemble the ToC of each file. While I am aware this is required for Toggle page headers, I noticed somewhat slow loading times when dropping 330-ish files into Otterwiki. Header depth of most pages is 3 or below. Every hit of /-/index takes ~3-4 seconds to parse all the pages, which will cause acceptance issues with some people.
I did some tests using empty strings or loading only the first 200 bytes per file from storage. Both improved loading times of the Page Index greatly (<0.2 seconds) at the cost of not having page headers available for display. I suppose the markdown parsing is the costly part.
On top of that, showing all the page headers for 300+ pages is not very helpful. The Page Index is utterly long and cluttered when showing page headers.
I'd love to have the loading of page headers either be opt-in, cached, asynchronous (when the page already shows) or on-demand (when the user hits the toggle).
The text was updated successfully, but these errors were encountered:
Hey @rhartmann, thank you for reporting this issue.
When I implemented this I thought about caching the page structure .. but I like your idea of loading this on-demand better. Will check and think about both approaches to solve this.
The code for caching the headers is ready and will be released in the next version. Working on other issues that I want to include too. Planing to release it this week. 🤞
It seems that every access of the Page Index
/-/index
loads and parses the markdown of every .md file in the repository to assemble the ToC of each file. While I am aware this is required for Toggle page headers, I noticed somewhat slow loading times when dropping 330-ish files into Otterwiki. Header depth of most pages is 3 or below. Every hit of/-/index
takes ~3-4 seconds to parse all the pages, which will cause acceptance issues with some people.I did some tests using empty strings or loading only the first 200 bytes per file from storage. Both improved loading times of the Page Index greatly (<0.2 seconds) at the cost of not having page headers available for display. I suppose the markdown parsing is the costly part.
On top of that, showing all the page headers for 300+ pages is not very helpful. The Page Index is utterly long and cluttered when showing page headers.
I'd love to have the loading of page headers either be opt-in, cached, asynchronous (when the page already shows) or on-demand (when the user hits the toggle).
The text was updated successfully, but these errors were encountered: