diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-08-23 22:30:10 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-08-23 22:30:10 -0700 |
| commit | 85747b266aac8a2ff7fea4a4b18f722133544ad7 (patch) | |
| tree | 53759fbc1840205ba142d257cc8640a62357750e /lib/std/multi_array_list.zig | |
| parent | d9e8671d963dc99ec8b4721f53d77828efa232ed (diff) | |
| download | zig-85747b266aac8a2ff7fea4a4b18f722133544ad7.tar.gz zig-85747b266aac8a2ff7fea4a4b18f722133544ad7.zip | |
Revert "Smaller memory footprint for BoundedArray (#16299)"
This reverts commit cb5a6be41ae0efc30d0b59a41b0763db966e5bf4.
I deeply apologize for the churn.
This change is problematic given that we do not have ranged integers
(yet? see #3806).
In the meantime, this type needs to be `usize`, matching the length and
index types for all std lib data structures.
Users who want to save memory should not use heap-allocated BoundedArray
values, since it is inherently memory-inefficient. Use a different
memory layout instead.
If #3806 is accepted and implemented, the length value can become an
integer with the appropriate range, without the footgun. If that
proposal is not accepted, len type will remain a usize.
Diffstat (limited to 'lib/std/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions
