zioth / dokuwiki-autotooltip

DokuWiki plugin to add styled tooltip functionality, and to automatically generate link tooltips based on page abstracts.
MIT License
5 stars 4 forks source link

Large number of tooltips can slow the page #3

Closed zioth closed 4 years ago

zioth commented 5 years ago

When rendering a page with a lot of wikilink tooltips, we have to read a lot of metadata. Doku's meta reader function is slow, causing a noticeable delay once you start doing it 100-200 times on a single page. Either optimize this when there are a lot of tooltips (I already have code to do this in another plugin), or fetch abstracts using ajax.

zioth commented 5 years ago

This might not be such a big deal. I tested with over 200 tooltips, and there was no noticeable slowdown.

zioth commented 5 years ago

I tried applying my optimization, and didn't measure any performance improvement. The optimization might be obsolete. I should also test it on my shared hosting service, instead of on my local machine, which uses a different filesystem and OS, and a faster processor.