Home
last modified time | relevance | path

Searched refs:lazy (Results 1 – 25 of 48) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Darkts-lazy-import.md1 # 延迟加载(lazy import)
22 > 不推荐开发者盲目增加lazy,同样会增大编译及运行时的识别开销。
26 - 使用lazy-import延迟加载。
30 import lazy { a } from "./mod1"; // "mod1" 未执行
57 - 同时对同一模块引用lazy-import与原生import。
61 import lazy { a } from "./mod1"; // "mod1" 未执行
94 如果在main.ets内删除lazy关键字,执行顺序为:
105 - lazy-import支持如下指令实现:
120 export lazy var v; // 编译器提示报错:应用编译报错
197 - 暂不支持lazy-import延迟加载kit。
[all …]
H A Darkts-module-side-effects.md272 ### 延迟加载(lazy import)改变模块执行顺序,可能导致预期的全局变量未定义
275 [延迟加载](arkts-lazy-import.md)特性可使待加载模块在冷启动阶段不被加载,直至应用程序实际运行过程中需要用到这些模块时,才按需同步加载相关模块,从而缩短应用冷启动耗时。但这也同…
282 import lazy { data } from "./module"
283 console.log(globalThis.someGlobalVar); // 此时由于lazy特性,module模块还未执行,someGlobalVar的值为undefined
293 由于使用到延迟加载(lazy import)特性,会导致模块变量在使用到时再执行对应的模块,模块中的一些全局变量修改行为也会延迟,可能会导致运行结果不符合预期。
306 import lazy { data, initialize } from "./module"
H A DReadme-CN.md72 - [延迟加载(lazy import)](arkts-lazy-import.md)
H A Dmodule-principle.md7 …onjs模块),此外ArkTS也对加载方式进行了拓展,包含[动态加载](arkts-dynamic-import.md)、[延时加载](arkts-lazy-import.md)、[同步动态加载N…
H A Darkts-bytecode-fundamentals.md633 ….ldlazymodulevar +AA | A:槽位号 | 将槽位号为A的外部模块变量存放到acc中。此指令仅适用于通过[lazy import](arkts-lazy-import.md…
634 …untime.wideldlazymodulevar +AAAA | A:槽位号 | 将槽位号为A的外部模块变量存放到acc中。此指令仅适用于通过lazy import导入的模块变量。 |
635 …me.ldlazysendablemodulevar +AA | A:槽位号 | 将槽位号为A的外部模块变量存放到acc中。此指令仅适用于通过lazy import导入的模块变量且仅出现在s…
636 …deldlazysendablemodulevar +AAAA | A:槽位号 | 将槽位号为A的外部模块变量存放到acc中。此指令仅适用于通过lazy import导入的模块变量且仅出现在s…
/ohos5.0/docs/zh-cn/application-dev/performance/
H A DLazy-Import-Instructions.md1 # 延迟加载lazy-import使用指导
3 …动加载模块的时间也越来越长。而在实际冷启动过程中执行了很多应用整体依赖但当前未使用的文件,此时可以通过延迟加载 [lazy-import](../arkts-utils/arkts-lazy-im…
5 ## lazy-import与动态加载的区别
17 …者明确感知被动态加载文件不会在冷启动被执行才会有收益,否则会增大冷启动开销(放入异步队列等)。相较于动态加载,使用lazy-import延迟加载,开发者只需要在import语法中增加lazy关键字…
73 ### lazy-import示例
75 在通过工具筛选出冗余文件后,开发者可选择在引入时添加`lazy`关键字对文件进行标识,表示该文件可被延迟加载。
78 // 此处添加lazy关键字,标记该文件可延迟加载
79 import lazy { A } from "./A";
99 通过抓取Trace图查看调用栈可发现,使用lazy-import标识后,应用在冷启动时不再加载A文件。
105 3. 已经被动态加载的文件同时使用lazy-import时,这些文件会执行lazy标识,在动态加载的then逻辑中同步加载。
[all …]
H A Dimprove-application-cold-start-speed.md431 可以通过延迟加载 [lazy-import](../arkts-utils/arkts-lazy-import.md) 延缓对冷启动时暂不执行的冗余文件的加载,而在后续导出变量被真正使用时再同步加载…
432 详细使用指导请参考[延迟加载lazy-import使用指导](Lazy-Import-Instructions.md)。
/ohos5.0/docs/en/application-dev/arkts-utils/
H A Darkts-lazy-import.md7 > - The lazy import is supported since API version 12.
26 - Use lazy import.
30 import lazy { a } from "./mod1"; // "mod1" is not executed.
61 import lazy { a } from "./mod1"; // "mod1" is not executed.
145 - In the same ets file, not all the dependency modules that require the lazy import are added lazy
147 …Incomplete labeling will cause lazy loading to fail and increase the overhead of identifying lazy
150 … import lazy { a } from "./mod1"; // Obtain the object a from "mod1" and add a lazy identifier.
165 … import lazy { a } from "./mod1"; // Obtain the object a from "mod1" and add a lazy identifier.
184 … import lazy { a } from "./mod1"; // Obtain the object a from "mod1" and add a lazy identifier.
197 - Currently, lazy import cannot be executed in kit.
[all …]
H A Darkts-module-side-effects.md275 [Lazy Import](arkts-lazy-import.md) prevents the modules to be loaded from being loaded in the cold…
282 import lazy { data } from "./module"
283 console.log (globalThis.someGlobalVar); // The module is not executed due to the lazy feature. The …
293 The lazy import feature is used. As a result, the corresponding module is executed when the module …
306 import lazy { data, initialize } from "./module"
H A Darkts-sendable-module.md19 …After a module is shared between threads, functions are lazy loaded to dependent non-shared module…
H A DReadme-EN.md72 - [Lazy Import](arkts-lazy-import.md)
H A Dmodule-principle.md7 …cluding dynamic loading (arkts-dynamic-import.md), delayed loading (arkts-lazy-import.md), and syn…
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.56/
H A Dchangelogs-lazy_import.md3 ## cl.ArkTS.1 延迟加载(lazy import)影响异步任务执行时序变更为不影响异步任务执行时序
11 延迟加载(lazy import)特性在测试过程中发现问题,在异步任务中使用到lazy import的变量,会导致异步任务的运行时序发生改变,与预期不符。
17 变更前: 在异步任务中使用到lazy import的变量,会导致异步任务的运行时序发生改变,与预期不符。
19 变更后: 在异步任务中使用到lazy import的变量,不会导致异步任务运行的时序发生改变。
35 排查异步任务中直接或间接使用lazy import变量的场景,该功能的时序可能会发生改变。
47 import lazy { MyLog } from './myLog'
70 但是由于lazy import影响异步任务运行时序的问题,该用例的实际输出为:
77 本变更修复该问题,使得lazy import不会影响异步任务运行时序。
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-loading-long-list.md24 2. Implement lazy loading adapter functionality.
27 // Code for lazy loading functionality in a text list.
47 // Initialize lazy loading data.
51 // Set lazy loading data.
53 // Register the event receiver for lazy loading.
242 // Import the lazy loading module.
275 4. Write code for lazy loading of a list.
278 // Sample code for lazy loading a list.
297 // 2: Create ListItem child components for lazy loading and mount them to the List component.
301 // 3: Simulate lazy loading operations.
[all …]
H A Dndk-build-ui-overview.md64 …ong-list.md)| Explains how to develop performant long lists on the native side using lazy loading.|
H A Darkts-layout-development-create-list.md8 …w.md) modes, including conditional rendering, rendering of repeated content, and lazy data loading.
899 When the list is rendered in lazy loading mode, to improve the list scrolling experience and minimi…
910 - If lazy loading is used for list items and the list contains only one column, the number of the l…
912 - If lazy loading is used for list item groups, the number of the list item groups to cache before …
918 >2. When a list uses data lazy loading, all list items except the list items in the display area an…
/ohos5.0/base/security/asset/services/db_operator/
H A DBUILD.gn29 "//third_party/rust/crates/lazy-static.rs:lib",
49 "//third_party/rust/crates/lazy-static.rs:lib",
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Djsvm-optimizations.md49 #### 冷启动: 使用 lazy compile 代替 eager compile
51 在冷启动时, `eager compile` 会增加不必要的编译时间。这其中主要的原因是没有拿到 v8 lazy compile 优化效果: v8 会将不在必经路径上的函数推迟编译, 在实际运行到的…
/ohos5.0/base/security/code_signature/services/key_enable/
H A DBUILD.gn36 "//third_party/rust/crates/lazy-static.rs:lib",
65 "//third_party/rust/crates/lazy-static.rs:lib",
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/router/
H A Djs_page_state_machine.cpp349 LazyLoadManager *lazy = const_cast<LazyLoadManager *>(appContext_->GetLazyLoadManager()); in RenderPage() local
350 if (lazy != nullptr) { in RenderPage()
351 lazy->ResetWatchers(); in RenderPage()
/ohos5.0/docs/en/application-dev/performance/
H A Dcommon-trace-using-instructions.md87 Figure 4 shows the traces for a frame during lazy loading.
89 **Figure 4** Trace lanes for lazy loading
91 ![Trace lanes for lazy loading](figures/trace-lazyforeach.png)
96 …count:[%zu] | Number of lazy-loaded items. | Pre-builds items, inc…
128 …ntainer component is used to create 120 custom **IconView** components in lazy loading mode. In ea…
143 Text ('Example of lazy loading')
225 …- **H:Builder:BuildLazyItem [0]** and **H:ListLayoutAlgorithm::MeasureListItem:0**: create a lazy
H A Dwaterflow_optimization.md41 …rEach](../quick-start/arkts-rendering-control-lazyforeach.md) is used for lazy loading. During the…
/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-rendering-control-overview.md4 …or repeated content that quickly generate components based on array data, lazy loading statements …
/ohos5.0/base/security/asset/services/core_service/
H A DBUILD.gn32 "//third_party/rust/crates/lazy-static.rs:lib",
/ohos5.0/base/security/code_signature/test/unittest/
H A DBUILD.gn227 "//third_party/rust/crates/lazy-static.rs:lib",

12