•  
      request #12833 Reduce events that need to load all plugins
    Infos
    #12833
    Manuel Vacelet (vaceletm)
    2019-02-27 14:21
    2019-01-25 14:37
    13327
    Details
    Reduce events that need to load all plugins

    As of today there are a couple of events that are present on a lot of pages/routes and that need to load almost all plugins.

    When there are a lot of plugins it becomes to be sensible in term of performance impact.

    As a matter of fact, on site home (/) without statistics or news, autoload reports almots 3000 class to load for *nothing*, just to be there.

    There are several candidates nominated:

    • CollectRoutesEvent. The event is relevant (cannot be removed) but routes should be cached to avoid fireing it on all pages

    Other
    Empty
    Empty
    • [x] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2019-02-27
    Attachments
    Empty
    References

    Follow-ups

    • User avatar

      I close this one because the marginal gains expected are too narow to be really worth them.

      Moreover the big gains would be to get rid of url_verifications and to completely rewrite the way services, icons & co are managed between core and plugins.


      • Original Submission
        Something went wrong, the follow up content couldn't be loaded
        Only formatting have been changed, you should switch to markup to see the changes
      • Status changed from Under implementation to Closed
      • Close date set to 2019-02-27
    • User avatar
      Thomas Gerbet (tgerbet)2019-01-29 17:55
      gerrit #13847 has been merged into Tuleap 10.9.99.205, routes are now cached.
    • User avatar

      gerrit #13847 caches the route

      And developer documentation was updated to match new handler implementation

    • User avatar
      Thomas Gerbet (tgerbet)2019-01-29 09:50
      gerrit #13825 integrated into Tuleap 10.9.99.192.
    • User avatar
      Thomas Gerbet (tgerbet)2019-01-25 16:52
      The introductory contribution gerrit #13626 has been merged into Tuleap 10.9.99.174.

      Once we are done with the changes we need to think about updating the dev guide.