From: ws29.jung Date: Thu, 15 Nov 2018 05:01:25 +0000 (+0900) Subject: Implement Lazy BrowserWindow Initialization X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ba920b6081afecbc62c21c838b276242d82c630;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Implement Lazy BrowserWindow Initialization App launching using electron-efl was faster than xwalk and used more memory because of webview creation under window init. Now BrowserWindow will not initialized when wrt-loader preloads. This decrease the memory consumption of wrt-loader and app launching time is nearly the same as the xwalk. Change-Id: I0c8a8b2dd86a0e445cd1f6ca75cab2c231cd66a9 Signed-off-by: ws29.jung --- diff --git a/wrt/src/runtime.js b/wrt/src/runtime.js index c4813c9df..f77d79a6a 100755 --- a/wrt/src/runtime.js +++ b/wrt/src/runtime.js @@ -66,7 +66,6 @@ class Runtime { if (wrt.isElectronLaunch()) { return; } - _this.webApplication = new WebApplication(options); }); wrt.on('start-app', function() { runtime_debug('start-app'); @@ -82,6 +81,7 @@ class Runtime { Module._load(mainJsPath, Module, true); app.emit('ready'); } else { + _this.webApplication = new WebApplication(options); _this.webApplication.focusedWebWindow.setUrl(''); if (wrt.appID !== 'NVPDzvckj9.RuntimeAddonSetting') { _this.extensionManager.activateAll(app);