Comments (9)
This branch works fine for me. Tried stable/beta/nightly on AMD Ryzen 7950X and Graviton 1/2 - everything OK.
from simd-json.
Hi I can't reproduce this with the current version of simd-json and AVX2, can you share some details on version & CPU architecture you're trying this on?
from simd-json.
Hi, I figured out that it is not arch-related.
If compiled in release mode on the last nightly (rustc 1.73.0-nightly (6ef7d16be 2023-08-19)) it fails everywhere I tried: Graviton1/2, AMD Epyc 7551P, AMD Ryzen 7950X. In debug mode works fine though.
On the last stable rustc 1.71.1 (eb26296b5 2023-08-03) it works fine in both modes.
from simd-json.
Odd,
this works for me on both nightly and test in release mode:
$ cargo +nightly run --release
Compiling simd-test v0.1.0 (/Users/heinz/Projects/simd-test)
Finished release [optimized] target(s) in 2.17s
Running `target/release/simd-test`
simd-json decoded string: {"arg":"test"}
serde-json decoded string: {"arg":"test"}
$ cargo run --release
Finished release [optimized] target(s) in 0.22s
Running `target/release/simd-test`
simd-json decoded string: {"arg":"test"}
serde-json decoded string: {"arg":"test"}
from simd-json.
Try adding the following to the Cargo.toml:
[profile.release]
codegen-units = 1
Then it should start failing. Bizzarre indeed.
from simd-json.
Ah yes, that does it, but only for nightly. That's very likely a bug in nightly
not simd-json
but it's a good catch, perhaps best to report it to rust. I updated the repo if you want to link it.
from simd-json.
I filed the bug, but the response was discouraging. You can check there.
from simd-json.
could you give this branch a try: #308
from simd-json.
Fix is merged to 0.10.6, I'm closing the ticket, if there are more problems feel free to re-open or make a new one :) thanks for the report.
from simd-json.
Related Issues (20)
- Index out of bounds when parsing float in array HOT 1
- Security advisory for lexical?
- docs.rs failed to build simd-json-0.10.7 HOT 1
- Native rust implementation as fallback for unsupported architectures HOT 1
- simd_json::OwnedValue and simd_json::BorrowedValue HOT 7
- Raw JSON values HOT 5
- [DOCS] Fix typos in the README file HOT 1
- Missing Contribution.md HOT 1
- Update from 0.2.x to newest simdson
- Feature: Adding contributors section to the README.md file. HOT 4
- Nul character allowed in JSON? HOT 1
- Trouble compiling 13.4 to wasm32-unknown-unknown HOT 1
- - HOT 1
- unsafe precondition(s) violated: ptr::write requires that the pointer argument is aligned and non-null HOT 1
- simd_json::from_reader (and from_slice) end in error when trying to deserialize to a serde_json::RawValue HOT 4
- Questions about implementation and experience?
- Benchmarks HOT 2
- Performance between 'Values API' and 'Serde Compatible API'. HOT 3
- panic while fuzzing HOT 1
- wasm32-wasi doesn't seems to work HOT 7
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 simd-json.