-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated data structures to use Go generics.
Prior to this commit all objects in the Collection data structures were boxed in an Go interface{} which adds an extra 8 bytes per object and requires assertion to unbox. Go 1.18, released early 2022, introduced generics, which allows for storing the objects without boxing. This provides a extra boost in performance and lower in-memory footprint.
- Loading branch information
Showing
5 changed files
with
67 additions
and
107 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
Oops, something went wrong.