Re: Speed up Java on i
David Gibbs via JAVA400-L <[email protected]>
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <[email protected]> |
On 11/23/20 1:39 PM, Logic IT: K. Fritz wrote: > So I've wrote a small ZXING Java program and a colleague a DataQ server > program to prevent multiple starts of the JVM. > > But it's still too slow! For 1000 QR Codes needs my i9 3 Min and the > customer talks about 2 Million documents with a QR-Code. > > How can I achieve much more speed to run the java prog? I would suggest making the java code a server function that runs all the time waiting for requests to generate the QR code. That way the java startup penalty isn't incurred every time it's invoked. For a single function server like that, I would suggest using a data queue to listen for requests and a thread pool to manage the work load. david -- I'm riding in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax-deductible donation to my ride by visiting https://mideml.diabetessucks.net. You can see where my donations come from by visiting my interactive donation map ... https://mideml.diabetessucks.net/map (it's a geeky thing). -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l. Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com