Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.7
-
Fix Version/s: 5.1
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
Description
A part of the 5.0 work we integrated a bunch of code from a client. Part of this code was the ImagePool. An existing client had relatively small acad files that were popping the heap. On closer inspection a Jpeg image was being used 1200 times for painting some background stuff. On closer inspection the jpeg image was being parser and put into memory 1200 times instead of just once. On closer inspection the ImagePool was only being used at paint and not before an image was parsed.
When an image is parse via an xobject the xobject can be used in multiple places in the content stream by name. So in this case the image was being used 1200 times in various places.
When an image is parse via an xobject the xobject can be used in multiple places in the content stream by name. So in this case the image was being used 1200 times in various places.
Activity
Patrick Corless
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #42496 | Wed Sep 03 15:11:25 MDT 2014 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/ImagePool.java
MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java |
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 5.1 [ 10675 ] | |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Not sure how this issue (parsing same image more then once) has never been risen in the past. ImagePool and ImageStream have been patched to avoid parsing the image stream twice and reusing the images across multiple paints.