Re: Java performance qshell javac
David Gibbs via JAVA400-L <[email protected]> Wed, 19 Jan 2022 13:09:43 -0600
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <[email protected]> |
On 1/19/22 12:51 PM, John Allen wrote: > I have a java program (class file) that performs AES 256 encryption > > On one partition running 7.3 it runs in 15 seconds (wish it was faster) > > On partition 2 running 7.3 it runs in 80 seconds (not acceptable) > > Any suggestions on what I can change that might make a difference? How are you invoking the java? Are you loading a new instance every time? My personal recommendation is to create a java server that's launched on system start up. The server code listens on a data queue. Native code would then send a message to the server via the data queue and get it's response there. That way you incur the java startup penalty once. 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