Skip to content

add reserve function for array to reserve memory before adding json values into it #436

Description

@fnc12

std::vector has a very useful reserve function that is used to preallocate memory for future push_backs. It reduces push_back time in case if a number of items is high. So it would be useful to add this function to basic_json for array reserve

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions