Skip to content

Added capacity to slice creation, when capacity is known#516

Merged
elithrar merged 1 commit intogorilla:masterfrom
vivekv96:master
Aug 30, 2019
Merged

Added capacity to slice creation, when capacity is known#516
elithrar merged 1 commit intogorilla:masterfrom
vivekv96:master

Conversation

@vivekv96
Copy link
Contributor

Simple optimisation to reduce memory allocations and copying(while appending).

Copy link
Contributor

@fharding1 fharding1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@elithrar elithrar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vivekv96!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants