Comments (2)
I was somewhat curious about the perf difference https://quick-bench.com/q/pAJeQPdR_YlEFZ3XJPqC35By67A
Provided one string_view is constexpr it is about even which makes sense since it knows the size compiletime and can generate essentially the same code for the memory comparison (Minus an extra size check) but if neither std::string_view values are constexpr it is about 5-8x slower depending on the compiler because it ends up calling memcmp.
I don't think any of our comparisons use 2 runtime hashes but it's still better safe than sorry.
from glaze.
Handled in #202
from glaze.
Related Issues (20)
- Document need for asio to be included by the user and add compile time errors HOT 1
- extend glaze explicit reflection with private members HOT 1
- Partial read breaks down when a members order of a JSON object is not the same as the structure's one HOT 6
- Missing explicit on json_t::operatol bool() HOT 1
- Add prettify compile time option for write_json_schema
- Add compile time key name checking for glz::json_schema and glaze_json_schema
- Conversion function from BEVE to JSON
- Arrays partial read support HOT 1
- Document glz::json_schema
- glz::any::storage_base weak vtable HOT 38
- std::variant enclosed in std::variant HOT 1
- read_file_csv and one overload read_csv ignores specified explicitly layout as template argument HOT 5
- buffer overflow in glaze/json/write.hpp:216 in void glz::detail::serialize_string<8ul, char, char, unsigned long>(..) HOT 5
- glz::read format glz::csv infinite loop and memory exhaustion HOT 8
- JSON diff & patch feature HOT 4
- Add Address Sanitizer to GitHub Actions HOT 7
- Broken compilation in Visual Studio 2019 HOT 1
- buffer overflow in cli_menu HOT 1
- Generation of JSON schema from BEVE file
- Precompiled header support for Clang HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glaze.