Skip to content

Question : performance against python dict #2194

Description

@pfeatherstone

Preface:
This library strikes me as a state-of-art STL-like container mimicking python dictionaries, that, in a way, provides compile time reflection and serialisation utils in one bag. It's got to the point where this library is so good at doing type -> dict -> serialised buf -> dict -> type (amongst many other things), that even if performance was poor (which it isn't) it would be irrelevant given how usable this library is. i'll carry on for a bit. This gives python users no more excuses when they say that C++ doesn't support dictionaries and therefore can't easily abstract away data types. (for example, they may want to implement **kwargs - like functionality in C++). Well now they can. I know you shouldn't replace struct/class types in C++ with the nholmann::json type, but if you really wanted to, you could.

Question:
Now that we are in agreement that the performance of this library isn't the priority, but rather usability is, lets ask the question anyway: how does the performance of this library compare to python dictionaries?

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