Skip to content

treewide: consider swapping malloc+memset with calloc #154

Description

@vfazio

There are a number of places where malloc+memset are used to initialize a chunk of memory that could be replaced with a call to calloc. Since we're not allocating large chunks of memory, there may not be huge performance wins from the swap, but it should condense the code a bit.

I acknowledge SF isn't gospel, but here's a quick blurb: https://stackoverflow.com/a/2688522

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions