valerybokov commented on pull request #107:
URL: https://github.com/apache/pdfbox/pull/107#issuecomment-960491720


   > > Hi, @THausherr! You have changed the PDColorSpace class. It looks like 
the ColorConvertOp field might be static? Why do you need many instances of 
ColorConvertOp for each PDColorSpace instance? (PDFBOX-5310: create 
ColorConvertOp only once)
   > 
   > Yes this was changed for speed. The effects are amazing for files with 
many tiny images. There seems to be some caching going on, from looking at the 
source code. I assumed that this caching would be per entity, so each entity 
should keep its own colorspace. A common ColorConvertOp for all would mean 
synchronization and possibly loss of caching, even if it doesn't happen, then 
maybe in older versions.
   
   Understood. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to