how to handle very large array?

MichaelBi at
Wed Feb 9 10:05:23 UTC 2022

On Wednesday, 9 February 2022 at 10:03:21 UTC, MichaelBi wrote:
> day6 of the advent of code 2021 needs to handle an array of 
> 10^12 length, or even bigger... plus change elements and append 
> elements. normal implementation such as length, appender and 
> ref element etc, seems cannot handle that big array? is there 
> any alternative data structure or algorithm can handle such 
> large array properly? thanks.

got outofmemory error:
core.exception.OutOfMemoryError at src\core\lifetime.d(126): Memory 
allocation failed

More information about the Digitalmars-d-learn mailing list