Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 469039

Summary: Investigate merging of orion plugins to improve page loading performance
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: ClientAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: 9.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Silenio Quarti CLA 2015-06-01 15:37:06 EDT
Determine whether merging some of the orion plugins will improve the page loading performance.
Comment 1 Silenio Quarti CLA 2015-06-02 10:08:17 EDT
Test: Open the "idosg | DS Web IDE" project in the edit.html page on beta3.

1) Run this on the console to time the merged plugin code:

localStorage.clear(); localStorage.onePlugin = true; localStorage.consoleMetrics = true; location.reload()

2) Run this on the console to time the unmerged plugin code:

localStorage.clear(); localStorage.consoleMetrics = true; location.reload()

1) average (5590.83)
page complete 5734.603000004427 /code/edit/edit.html
page complete 5669.178000011016 /code/edit/edit.html
page complete 5566.851000010502 /code/edit/edit.html
page complete 5399.772000004305 /code/edit/edit.html
page complete 5572.757999994792 /code/edit/edit.html
page complete 5605.244999998831 /code/edit/edit.html

2) average (10302.83)
page complete 9696.467000001576 /code/edit/edit.html
page complete 9981.770999991568 /code/edit/edit.html
page complete 9615.06900000677 /code/edit/edit.html
page complete 10773.378000012599 /code/edit/edit.html
page complete 11048.423000000184 /code/edit/edit.html
page complete 10704.601999997976 /code/edit/edit.html

beta3 that beta3 had non-minified code when the times were taken.
Comment 2 Silenio Quarti CLA 2015-06-02 10:58:14 EDT
Times for just a refresh (location.reload())


1) average (3088.94)
page complete 2721.6990000015358 /code/edit/edit.html
page complete 2886.5640000003623 /code/edit/edit.html
page complete 2991.1879999999655 /code/edit/edit.html
page complete 3482.3119999928167 /code/edit/edit.html
page complete 3105.87499999383 /code/edit/edit.html
page complete 3348.9260000060312 /code/edit/edit.html

2) average (3297.31)
page complete 2971.799999999348 /code/edit/edit.html
page complete 3057.5729999982286 /code/edit/edit.html
page complete 4064.8519999958808 /code/edit/edit.html
page complete 3028.6289999930887 /code/edit/edit.html
page complete 3264.145000008284 /code/edit/edit.html
page complete 3396.9020000076853 /code/edit/edit.html

Which makes sense because only the necessary plugins are loaded if the metadata of the plugin is cached in local storage.  In this case, 1) loaded three plugins and 2) loaded five plugins.
Comment 3 Silenio Quarti CLA 2015-06-02 11:07:16 EDT
The code released merged 13 plugins into one.

In comment #1, 1) loaded 11 plugins and 2) loaded 22 plugins.
Comment 4 Silenio Quarti CLA 2015-06-15 14:23:33 EDT
The code has been enable by default.  There is still room for improvement here (i.e merge other plugins: javascript, git, etc). But I think we should open separate bugs as necessary.

Some of the plugins cannot be merged since they have UI compoenents (i.e JSON editor and Image Viewer).

Plugins that are loading the bootstrap cannot currently be merged either.