my @integer_array; tie @integer_array, 'Tie::IntegerArray', bits => 32, signed => 1, size => 1_000_000; # Pre-allocate this many