-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace BigArrays with primitive ones in BigInt aggregation
LongBigArray and IntBigArray with long[] and int[]. The original implementation was done because Java prior to version 11 had some problems handling humongous (very big) objects and that sometimes caused giant GC pauses. Since Java 11 humongous objects are first allocated on eden which mitigates problems with collecting them. before: BenchmarkGroupByHash.bigintGroupByHash 1 true avgt 10 60,944 ± 1,730 ns/op BenchmarkGroupByHash.bigintGroupByHash 1 false avgt 10 58,081 ± 1,310 ns/op after: BenchmarkGroupByHash.bigintGroupByHash 1 true avgt 10 49,011 ± 1,100 ns/op BenchmarkGroupByHash.bigintGroupByHash 1 false avgt 10 47,924 ± 2,408 ns/op
- Loading branch information
Showing
2 changed files
with
27 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters