Add BSON support#9
Conversation
- Implemented BSON serialization and deserialization in `include/glaze/bson/`. - Integrated BSON into `glz::opts` and `glz::read`/`glz::write` API. - Added 347 test cases in `tests/bson_test/`. - Added performance benchmarks in `benchmarks/bson_benchmark.cpp`. - Ensured C++20 compatibility by avoiding C++23 features like `std::byteswap`. - Implemented tag-aware reading for robust stream synchronization. - Optimized array index serialization using `glz::to_chars`.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Implemented BSON serialization and deserialization in `include/glaze/bson/`. - Integrated BSON into `glz::opts` and `glz::read`/`glz::write` API. - Added 347 test cases in `tests/bson_test/`. - Added performance benchmarks in `benchmarks/bson_benchmark.cpp`. - Ensured C++20 compatibility. - Implemented tag-aware reading for robust stream synchronization. - Optimized array index serialization using `glz::to_chars`.
- Added BSON format support (glz::BSON = 40) - Implemented BSON reader and writer in include/glaze/bson/ - Added safety checks against malformed/truncated BSON data - Integrated BSON into global options and main library headers - Added comprehensive unit tests in tests/bson_test/ - Added BSON performance benchmarks in benchmarks/ - Optimized map lookups and ensured C++23 compatibility - Fixed minor compatibility issues in reflect.hpp
High-performance BSON support for Glaze library.
Features:
PR created automatically by Jules for task 3032461295828104591 started by @wilkolbrzym-coder