You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/03/29 17:54:00 UTC

[jira] [Comment Edited] (TIKA-2620) Set sys property to get better rendering speed by default

    [ https://issues.apache.org/jira/browse/TIKA-2620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419487#comment-16419487 ] 

Tilman Hausherr edited comment on TIKA-2620 at 3/29/18 5:53 PM:
----------------------------------------------------------------

[~gagravarr] KCMS is the legacy setting. It is much faster.

It is the only up to jdk7; in jdk8 and 9 it is optional; in jdk10 it no longer exists. So anybody using jdk10 with PDFs with many images or many colorspaces will have to wait a lot.

[~tallison@mitre.org] the only reason not to set it is if somebody wants the new CMM (LittleCMS) for his own application that uses tika.

My suggestion: make a setting in tika config like "setKCMS" that is true by default. Read that setting and if it is set, then do the call that is in the INFO message.


was (Author: tilman):
[~gagravarr] KCMS is the legacy setting. It is much faster.

It is the only up to jdk7; in jdk8 and 9 it is optional; in jdk10 it no longer exists. So anybody using jdk10 with PDFs with many Images will have to wait a lot.

[~tallison@mitre.org] the only reason not to set it is if somebody wants the new CMM (LittleCMS) for his own application that uses tika.

My suggestion: make a setting in tika config like "setKCMS" that is true by default. Read that setting and if it is set, then do the call that is in the INFO message.

> Set sys property to get better rendering speed by default
> ---------------------------------------------------------
>
>                 Key: TIKA-2620
>                 URL: https://issues.apache.org/jira/browse/TIKA-2620
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Trivial
>
> After upgrading to PDFBox 2.0.9, we now get a logged warning:
> {noformat}
> INFO  To get higher rendering speed on JDK8 or later,
> INFO    use the option -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider
> INFO    or call System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider")
> {noformat}
> Unless there are objections, I'll add a static call to the PDFParser to {{System.setProperty...}}.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)