Last modified: 2009-04-06 11:52:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20352, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18352 - Message performance optimisation for Collection
Message performance optimisation for Collection
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: PediaPress Development Team
: patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-05 12:42 UTC by Siebrand Mazeland
Modified: 2009-04-06 11:52 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch for Collection extension (607.12 KB, patch)
2009-04-05 12:47 UTC, Siebrand Mazeland
Details

Description Siebrand Mazeland 2009-04-05 12:42:24 UTC
Please find patch attached. Can obviously commit myself, but input would be appreciated. Setting up a test environment for this is impossible for me...

* split off classes for hooks and session
* split i18n file in CollectionCore (24 messages) and Collection (83 from 107) to reduce initial load time and memory consumption
Comment 1 Siebrand Mazeland 2009-04-05 12:46:27 UTC
Oh, before I forget... Talked about this with a PediaPress developer at the MediaWiki developer conference.
Comment 2 Siebrand Mazeland 2009-04-05 12:47:16 UTC
Created attachment 5992 [details]
Patch for Collection extension
Comment 3 PediaPress Development Team 2009-04-06 09:17:00 UTC
Thanks a lot for the patch!

But I also talked with Domas at the meet-up who said, more important than the performance issue w/ loading the system message (which will be fixed by changes to core MediaWiki code in a few weeks) is the fact, that lots of PHP code gets loaded each time. Your patch is a very good starting point for this problem, too!  But some methods in Collection.hooks.php use static methods from Collection.body.php, so I'll refactor that before I'll commit the changes.
Comment 4 Siebrand Mazeland 2009-04-06 09:29:12 UTC
(In reply to comment #3)
> Thanks a lot for the patch!
> 
> ... the fact, that lots of PHP code gets
> loaded each time. [..]
Yes, I saw that it needed more refactoring to separate the various parts of functionality into more classes, but I didn't have the time yesterday in Berlin to completely follow through. I have put a lock on the files in SVN to not allow any changes. If you're certain that my patch will be the basis for the next update in there, I will release the lock. Maybe contact me outside this system to get things sorted out?
Comment 5 Siebrand Mazeland 2009-04-06 09:30:32 UTC
P.s. If you have tested the patch as working, I can also just commit it, so you can complete whatever else can be refactored.
Comment 6 PediaPress Development Team 2009-04-06 09:33:02 UTC
No, I'm afraid it contained a few minor bugs. I'll contact you via PM in a few minutes.
Comment 7 PediaPress Development Team 2009-04-06 11:52:49 UTC
Fixed in http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=49236

Thanks, Siebrand!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links