|
YAJL is quite fast. I wrote my own parsing for JSON a while back (as a fun
little refresher course in tree processing and recursion) and it was in
RPG. It was nowhere near as fast as YAJL.
Should be easy to put together a test for YAJL vs YAJLINTO.
On Mon, Feb 17, 2025 at 2:31 AM Suren K <suren7437@xxxxxxxxx> wrote:
Hi All,but I
I’m curious to know if there are any performance differences between
YAJLINTO and YAJL procedures when parsing JSON field by field.
I understand that parsing field by field requires more coding effort,
wanted to check if there are notable performance variations between thefield
two. In DATA-INTO, JSON is parsed once from top to bottom, with each
being populated into the data structure during parsing itself.all
However, in the case of YAJL procedures, if we use yajl_object_find to
locate a field positioned as the 10th field in the JSON, does it parse
10 fields to retrieve its value? If this assumption is correct, YAJLINTO--
might offer better performance compared to YAJL procedures.
Would love to hear your thoughts or suggestions on this.
Regards,
Suren
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.