Re: PDColorSpace.toRGBImageAWT() very slow

2015-03-24 Thread John Hewson

> On 21 Mar 2015, at 08:02, Tilman Hausherr  wrote:
> 
> Am 20.03.2015 um 09:14 schrieb Andreas Lehmkühler:
>> Hi,
>> 
>> 
>>> Tilman Hausherr  hat am 19. März 2015 um 23:30
>>> geschrieben:
>>> 
>>> 
>>> I'm testing preflight on the Rackspace server of Tim Allison. Preflight
>>> is very slow, and I narrowed this to
>>> PDColorSpace.toRGBImageAWT(), there to the line
>>> 
>>>op.filter(src, dest);
>>> 
>>> Initialization of a CMYK based PDIndexed colorspace takes between 1 and
>>> 4 seconds :-( On my W7 system, it takes about 50ms.
>>> 
>>> Java installed on the server:
>>> 
>>> java version "1.7.0_75"
>>> OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
>>> OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
>> According to [1] it seems to be a regression within newer versions >1.7.0_25 
>> of
>> the OpenJDK
>> 
>> BR
>> Andreas
>> 
>> [1]
>> https://bugs.openjdk.java.net/browse/JDK-8041125?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab
> 
> Yeah, I should have googled it... or have remembered that we discussed this 
> before and even have a workaround:
> https://issues.apache.org/jira/browse/PDFBOX-2230
> 
> (Sadly, the workaround doesn't make a difference :-(  )
> 
> Maybe this can also explain why JDK8 was so slow when I installed it a few 
> months ago. I deinstalled it a few hours later.
> 

Yes, unfortunately the JDK switched from Kodak CMS (fast) to LCMS (slow).

— John

> Tilman
> 
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: dev-h...@pdfbox.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Re: PDColorSpace.toRGBImageAWT() very slow

2015-03-23 Thread Tilman Hausherr

Am 21.03.2015 um 16:02 schrieb Tilman Hausherr:

Am 20.03.2015 um 09:14 schrieb Andreas Lehmkühler:

Hi,



Tilman Hausherr  hat am 19. März 2015 um 23:30
geschrieben:


I'm testing preflight on the Rackspace server of Tim Allison. Preflight
is very slow, and I narrowed this to
PDColorSpace.toRGBImageAWT(), there to the line

op.filter(src, dest);

Initialization of a CMYK based PDIndexed colorspace takes between 1 and
4 seconds :-( On my W7 system, it takes about 50ms.

Java installed on the server:

java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
According to [1] it seems to be a regression within newer versions 
>1.7.0_25 of

the OpenJDK

BR
Andreas

[1]
https://bugs.openjdk.java.net/browse/JDK-8041125?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab 



Yeah, I should have googled it... or have remembered that we discussed 
this before and even have a workaround:

https://issues.apache.org/jira/browse/PDFBOX-2230

(Sadly, the workaround doesn't make a difference :-(  )

Maybe this can also explain why JDK8 was so slow when I installed it a 
few months ago. I deinstalled it a few hours later.


Tim installed Oracle JDK 8 and now it works with the workaround.

Tilman



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Re: PDColorSpace.toRGBImageAWT() very slow

2015-03-21 Thread Tilman Hausherr

Am 20.03.2015 um 09:14 schrieb Andreas Lehmkühler:

Hi,



Tilman Hausherr  hat am 19. März 2015 um 23:30
geschrieben:


I'm testing preflight on the Rackspace server of Tim Allison. Preflight
is very slow, and I narrowed this to
PDColorSpace.toRGBImageAWT(), there to the line

op.filter(src, dest);

Initialization of a CMYK based PDIndexed colorspace takes between 1 and
4 seconds :-( On my W7 system, it takes about 50ms.

Java installed on the server:

java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

According to [1] it seems to be a regression within newer versions >1.7.0_25 of
the OpenJDK

BR
Andreas

[1]
https://bugs.openjdk.java.net/browse/JDK-8041125?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab


Yeah, I should have googled it... or have remembered that we discussed 
this before and even have a workaround:

https://issues.apache.org/jira/browse/PDFBOX-2230

(Sadly, the workaround doesn't make a difference :-(  )

Maybe this can also explain why JDK8 was so slow when I installed it a 
few months ago. I deinstalled it a few hours later.


Tilman



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Re: PDColorSpace.toRGBImageAWT() very slow

2015-03-20 Thread Andreas Lehmkühler
Hi,


> Tilman Hausherr  hat am 19. März 2015 um 23:30
> geschrieben:
> 
> 
> I'm testing preflight on the Rackspace server of Tim Allison. Preflight 
> is very slow, and I narrowed this to
> PDColorSpace.toRGBImageAWT(), there to the line
> 
>op.filter(src, dest);
> 
> Initialization of a CMYK based PDIndexed colorspace takes between 1 and 
> 4 seconds :-( On my W7 system, it takes about 50ms.
> 
> Java installed on the server:
> 
> java version "1.7.0_75"
> OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
> OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
According to [1] it seems to be a regression within newer versions >1.7.0_25 of
the OpenJDK

BR
Andreas

[1]
https://bugs.openjdk.java.net/browse/JDK-8041125?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab
> 
> 
> Tilman
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: dev-h...@pdfbox.apache.org
>

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



PDColorSpace.toRGBImageAWT() very slow

2015-03-19 Thread Tilman Hausherr
I'm testing preflight on the Rackspace server of Tim Allison. Preflight 
is very slow, and I narrowed this to

PDColorSpace.toRGBImageAWT(), there to the line

  op.filter(src, dest);

Initialization of a CMYK based PDIndexed colorspace takes between 1 and 
4 seconds :-( On my W7 system, it takes about 50ms.


Java installed on the server:

java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)


Tilman

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org