-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Description
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?