harmony 鸿蒙Overview of the ArkTS Container Library

  • 2023-10-30
  • 浏览 (700)

Overview of the ArkTS Container Library

The ArkTS container library provides a set of methods to process elements of various data types stored in containers. It can yield certain benefits when being used as pure data structure containers.

Container classes are implemented similarly to static languages, with constraints on storage locations and properties. This approach allows each data type to fulfill its purpose without unnecessary logic, ensuring efficient data access and boosting application performance.

At present, two categories of containers are available: linear containers and nonlinear containers. Linear containers are backed by arrays, whereas non-linear containers rely on hash tables or red-black trees. Neither type of container is designed to be thread-safe.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS

harmony 鸿蒙Configuring arkOptions in build-profile.json5

harmony 鸿蒙Asynchronous Lock

harmony 鸿蒙Ark Bytecode File Format

harmony 鸿蒙Naming Conventions for Ark Bytecode Functions

harmony 鸿蒙Ark Bytecode Fundamentals

harmony 鸿蒙Overview of Ark Bytecode

harmony 鸿蒙Shared Container

harmony 鸿蒙Asynchronous Waiting

harmony 鸿蒙ArkTS Cross-Language Interaction

0  赞