RE: comments plugin...slow?
"Blake Winton" <blake-dlUKtbW3TlBcVw/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
> On Tue, 18 May 2004, gabor wrote: > > i can understand that textile needs time to load..but why > > takes it sooooooo long for the comments plugin? on the > > main page (which i tested) there is nothing that is > > generated by the comments plugin... > Ahh but the comments plugin generates a $num_comments > variable for every entry that gets displayed. In order to > do this, it has to parse all the comments for that entry. > So even if you don't use the $num_comments variable, it's > there and the comments plugin generates it. But the comments plugin could be changed to only generate the data for that variable when requested, like most of the other plugins do... (It won't help if you use the $num_comments variable, but it should be faster if you don't, and it's probably a good thing to do, just in case other people use it as the basis for new plugins.) Hey Gabor, do you know Python? Do you want to learn? The changes that need to be made are fairly easy, and come with a lot of samples to guide you. Later, Blake. ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click