Hi All,
In my
Java Swing code(on the server side), I am calling System.loadLibrary() to call a C function. Whenever I want to save an object, I call the save() function, which in turn calls this loadLibrary()(non-static). Also, my application is experience inferior performance after this change implemented.
My questions are:
1. Can calling System.loadLibrary() for every request degrade the application performance?
2. Should this method be necessarily called in a thread-safe method(currently that is not happening)
3. If loadLibrary() is a candidate for performance issue, then in order to resolve the issue should I:
3.1 Call this loadLibrary() only once.. i.e. a static block declaration once for the life of the application?
3.2. Convert this C function into Java executable code and use the same?
Please assist ASAP!!!
Thanks,
Kirti