It is interesting Nathan that your code is faster - but unless you will be making it available to the rest of us it is moot. I can't benefit from what I can't get.



On Aug 22, 2020, at 2:53 PM, Nathan Andelin <nandelin@xxxxxxxxx> wrote:

I wrote RPG benchmarks that measure the performance of parsing a JSON
document and mapping a fairly large number of values to an RPG
data-structure array, using 3 different parsers. One parser that I wrote
vs. the YAJL Tree interface vs. the RPG Data-Into / YAJLINTO Interface. I'm
posting links to the RPG source code for each benchmark. The interface that
I wrote performs 25 times faster than the YAJL Tree Interface and 142 Times
faster than the Data-Into / YAJLINTO interface. The Data-Into interface is
not quite an apples-to-apples comparison because it provides no way of
separating the "parsing" vs "data mapping" performance, which is measured
in the other 2 alternatives. Notwithstanding, it's clear that Data-Into
interfaces have a lot of overhead.

My Interface

http://rd.radile.com/rdweb/info3/iui20/json_test_01.txt

YAJL Tree Interface

http://rd.radile.com/rdweb/info3/iui20/yajl_test_01.txt

Data-Into / YAJLINTO Interface

http://rd.radile.com/rdweb/info3/iui20/yajl_test_02.txt
--
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.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.