4 ms·
Is it possible to have native JSON parsing with JNI bindings to make parsing faster, or will the overhead cancel out any boost in performance?
by kclay 12y ago
Is it possible to have native JSON parsing with JNI bindings to make parsing faster, or will the overhead cancel out any boost in performance?
- lmm 12y agoI'd worry about correctness more than performance. With a parser that's often used on remote documents, you really don't want there to be security flaws.
- kasey_junk 12y agoWhy wouldn't you be able to write JSON parsing fast in Java natively? Even if you can't, it's precisely the kind of thing that would pay a large JNI penalty.
- azinman2 12y agoBoxing and unboxing characters is a big part of performance penalties, especially when dealing with Unicode.