Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starlark: optimize TestProfile (google#456)
Previously, the test would compute the first 100,000 elements of the Fibonacci sequence, holding them all in an array. Since elements may have over 20,000 digits, this allocates a lot of memory, which, under tight ulimits of virtual address space, in conjunction with the mmap int optimization, may cause the process to have insufficient virtual address space to allocate the necessary memory. This change causes it to compute but not retain the elements of the sequence. Fixes google#455
- Loading branch information