Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Reduce allocations #1204

Merged

Commits on Mar 30, 2020

  1. Reduce allocations

    When creating a copy of a slice/map we already know the size/capacity that the target slice/map needs to be.
    By using make and providing the capacity argument we avoid allocation memory to grow the slice/map.
    boekkooi-fresh committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    9449c58 View commit details
    Browse the repository at this point in the history