dragonfly.ai
dragonfly.ai
`ArrayBuffer.ensureSize` deals with offsets and lengths while `ArrayBuilder.ensureSize` takes a `size:Int` parameter directly. Although the current version quietly ignores overflowed/negative size parameter values, as size approaches `Int.MaxValue`, `ArrayBuilder`'s naive size...
From a broader perspective, maybe the risk of `newsize` overflow causes less trouble than the way that, on every `resize()` invocation, `ArrayBuilder`: - Temporarily triples its memory footprint for the...
I see a few reasons why we shouldn't share code between `ArrayBuffer` and `ArrayBuilder` but can summarize most of them by saying: they do different things; Buffer supports edits, shrinking,...
> I think I proposed that if the user gives a `sizeHint`, that means allocate and copy now, with the expectation that no further allocation is necessary. If an application...
OK. My plan was to get this working in a less mainstream Array library, then after validating it there with benchmarks and tests, try to move it into scala.
Today, I implemented my brilliant idea for making `ArrayBuilder` much, much faster and it performed 2X slower than the existing implementation. However, for any arrays larger than 1073741824, the current...
My idea: Instead of copying the array values into a new array that's twice as large, I thought I could save compute and memory by using a jagged 2D array....
> Also the storefront to open is, "Subtle Tees". [http://subtletees.com](http://subtletees.com) Squatters beat us to it.
Because the test for this bug fix requires over 18 gigabytes of heap space, thanks to @SethTisue and @som-snytt for suggesting the magic comment `// java: -Xmx24g -Xms8g` needed to...