Performance Issues When Using the Java Advanced Imaging API

In our project, we use JAI to display parts of the image, image rotation, and main scaling in the applet. Now we will notice that the applet takes a long time to load - about 20 seconds for the first time. But in the future it takes only 3 seconds (which is also quite large).

The development of the JAI seems to have froze since 2007. I could not find any posts to download 2007 on the Java website.

Has anyone encountered boot problems and solved them in the context of JAI? Is there an alternative JAI alternative? The images we use are in TIFF format, and they can have multiple images in one physical file.

Any pointers really appreciated.

+3
source share
1 answer

Starting the application for the first time (cold start) can be time consuming since you need to load many libraries, including JAI. The second and next application launches (warm start) are faster because the runtime classes are cached in classes.jsa .

Then, to process the image, you need a processor and to draw it, a graphic card. With modern computers, image processing (basic operations!) And processing (zooming, panning) are trivial and fast with JAI.

JAI + Image I/O, , 2007 (1Mp-). , , .

JAI - : / , , , , Apache Log4J, , , , (, Logback!).

JAI, ImageMagick, .

, , 8 /, , ...

+1

Source: https://habr.com/ru/post/1775163/


All Articles