《2017年无线动态化框架LuaView性能优化.pdf》由会员分享,可在线阅读,更多相关《2017年无线动态化框架LuaView性能优化.pdf(27页珍藏版)》请在三个皮匠报告上搜索。
1、?LuaView&?+L(aVi&w的前世今生+L(aVi&w?&?+L(aVi&w?+L(aVi&w?H5?vs Native?Native?H5?HybridBoxsysWeAppRNWeexLuaView?LuaView?H5BoxsysLuaView?/?LuaView?SDK?Hybrid?Boxsys?-React Native?LuaView?500kPage?ViewUI?Kit?Component LuaView?LuaView?&?LuaView?LuaView?LuaView?&?AndLua iOS1.WORB2.Simple&EasyBridge AllAPI S&E
2、?Lua?Lua?UI?NativeLua ScriptLuaViewUI LibsExtendsNUI LibsUser LibsCall LuaCall NativeLuaView?-ICall NativeLuaView?-IIlocal btn=Button()btn:text(“Test Button”)btn:onClick(function()end)function return userdatacall userdatas function?call native function)Call Luasave lua function&call lua functionuser
3、data nativeOSFrameworkLua ScriptLua EngineUndumperVM ExtenderScript ManagerResource FinderScript LoaderBundle UnpackerScript UnzipperSecurityBundle VerifyScript VerifyLuaView UI LibViewImageCollection ViewLabelButtonAnimationLuaView NUI LibHttpMTOPAudioPlayerBitmapFileSystemLuaView ConstantsAlignGra
4、vityInterpolatorFontStyleScaleTypeViewEffectLuaLibFWBIZUTLuaViewSDK?Config&Pkg ServerPackage ToolBytecode ToolBiz ServerConfig ServerBiz Data ServerPKG ServerLuaViewAndroidiOSDev ToolsTheraAndroidStudioDebug ToolsLuaView?&?LuaView SDK?SDK?And:500kiOS:650k?52+?48+?0.9995SDK?0.0005?10%?1.3?/?10000?And
5、?:?1.2s?90%2s?60%1sAnd?:?1s?90%1.7s?68%1siOS:?0.65s?90%1.5s LuaView?LuaView?&?LuaView?LuaView?VM?VM?Lua VM?VM?Lua VM?LuaView?VM?Bytecode?Prototype?HTTP2?ACCS?HTTP2?ACCS Simplify?VM?VM?VM LazyLoad Metatable?VM?simplifyVM?Lib?VM?Metatable?IO?LuaJIT?VM?VM?300%+?3?+?138%+?1.3?+?2000%+?20?+?130%+?1.3?+?2
6、00%+?2?+?15000?day1-beforeday2-beforeday3-beforeday1-afterday2-afterday3-after?634.84629.49556.16537.06457.49443.15?323.37377.68200.2138.7240.1870.91?&?1008.951029.031473.49726.88675.64707.02?1263.751282.281005.4251.8154.9044.47?447.64449.44380.18334.26259.122