initial capacity

language: zh

definitions

  1. In computing, the starting amount of memory or storage space allocated for a data structure (such as an array, list, or hash map) before it needs to be dynamically resized.
    zh: 初始容量
  2. The original volume, amount, or potential capability of a system, container, or entity at the beginning of an operation or period.
    zh: 初始规模

examples

  1. Setting an appropriate initial capacity for the list can improve performance by reducing reallocations.

    为列表设置合适的初始容量可以通过减少重新分配来提高性能。

  2. The factory's initial capacity was only half of what it is today.

    该工厂的初始产能仅为今天的二分之一。