Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Class.newInstance performance JDK11 vs JDK8
We are seeing a performance degradation on JDK11 with Class.newInstance() as compared to JDK8.
For quick check I executed below class on both JDK11 and JDK8. Execution time is ~25ms vs ~14ms in JDK11 and JDK8 resectively.
Is this a known issue or any workaround?
public class PerformanceTest {
public PerformanceTest() {
}
public static void main(String[] args) {
long l = System.currentTimeMillis();
for (int i = 0; i < 100000; i++) {
try {
PerformanceTest.class.newInstance();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
System.out.println("time taken = " + (System.currentTimeMillis() - l) + "ms");
}
}