You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ namespace ns {
36
36
Or use one of the Macros described
37
37
[here](https://github.com/nlohmann/json?tab=readme-ov-file#simplify-your-life-with-macros) in your class/struct.
38
38
39
-
By leveraging reflection, we can support for something as simple as:
39
+
By leveraging compile-time reflection, we can support for something as simple as:
40
40
41
41
```c++
42
42
intmain() {
@@ -49,6 +49,10 @@ int main() {
49
49
50
50
With ~200 lines of code (as you can see in the [toy_builder.cpp](prototype_playground/toy_builder.cpp)).
51
51
52
+
As of now, we were able to implement this with ~1k lines of code (and that is including Neon + SSE2 optimizations in [json_escaping.hpp](src/json_escaping.hpp)).
53
+
54
+
The benchmark results show that our serialization speed can be 20/30x faster than [nlohmann](https://github.com/nlohmann/json).
55
+
52
56
## Current status
53
57
There are 2 versions of compiler that aim to support the C++ 26 reflection paper.
0 commit comments