https://bugzilla.wikimedia.org/show_bug.cgi?id=41377

       Web browser: ---
             Bug #: 41377
           Summary: Linker:link is inefficient
           Product: MediaWiki
           Version: 1.21-git
          Platform: All
               URL: http://translatewiki.net/w/profileinfo.php?filter=Link
                    er%3A%3A&sort=time&expand=%2CLinker%3A%3Alink
        OS/Version: All
            Status: NEW
          Keywords: performance
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


In https://gerrit.wikimedia.org/r/#/c/29879/ I was able to save tens of
megabytes of memory by using Html::element( 'a' ) instead of Linker::link.

Profiling also confirms my observations: over 20k per call and 0.5 ms per call.
Not much per se, but it really adds up when making hundreds or even thousands
of links like I do.

Part of this might come from hooks: Translate and SemanticForms are using hooks
in linker.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to