[9] Review request for 8150181: javafx print jobs take 60 times longer than javax.print
mikhail cherkasov
mikhail.cherkasov at oracle.com
Mon Apr 11 14:52:46 UTC 2016
Hi all,
Could you please review the fix for:
https://bugs.openjdk.java.net/browse/JDK-8150181
webrev:
http://cr.openjdk.java.net/~mcherkas/8150181/webrev.02/
Javafx print is slow because after sending node for printing
we wait 1 sec before checking that page was done,
see implPrintPage method:
while (!pageDone) {
synchronized (monitor) {
try {
monitor.wait(1000);
} catch (InterruptedException e) {
}
}
}
so if you need to print 100 pages to pdf you will have to wait
for 100 seconds while with javax.print it happens almost instantly.
I added "notify" when page is printed, so now we start a new printing
without waiting.
Thanks,
Mikhail.
More information about the openjfx-dev
mailing list