I finally got around to testing JAR vs QzipZip. It's not a dedicated system test or anything, simply a couple comparison runs in batch mode.
JAR appears to outperform QzipZip. The difference is negligible if a job is only going to zip one file. If you're zipping hundreds (or more) files, I think the wise choice would be to pick JAR.
In my test I was zipping a .98gb file -all text.
QzipZip compressed it down to 59.3mb.
JAR compressed it down to 63.4mb.
I ran each one three times. (QzipZip with Verbose and again w/o it - didn't seem to make a difference.)
Both the call to the JAR and to QzipZip was located in a service program procedure.
JAR times: 26-27s, 34s, 34s
QzipZip times: 42-43s, 49s, 40s
QzipZip seemed like a new kind of API to me (service program), at least I was unfamiliar with this type of API. I had to bind in the QZipUtil service program to access it. I struggled a bit with the documentation as it wasn't clear to me that it was a service program.
Carsten's article helped quite a bit:
http://www.systeminetwork.com/article/rpg-programming/apis-zip-unzip-files-71-zip-api-support-698539
-Kurt
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt Anderson
Sent: Wednesday, January 18, 2012 8:42 AM
To: 'Midrange Systems Technical Discussion' (midrange-l@xxxxxxxxxxxx)
Subject: jar vs QZipZip
In today's MC RPG Developer newsletter, there is a link to a forum post that made me aware that in 7.1 IBM has supplied us with zip and unzip APIs: QZipZip and QZipUnzip.
Does anyone know how QZipZip compares to JAR (in QShell) performance-wise?
Kurt Anderson
Sr. Programmer/Analyst
CustomCall Data Systems
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.