Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.2
-
Fix Version/s: 5.0.3
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
Description
A few users have point at this but I thin I finally found the cause. When working though a large document there is an eventual slow down and there is a lot of time spent doing garbage collection. As a result of this collection the UI feels really slow.
I kicked the tires a bit and found that the we are using Softreferences for just about everying, which make it hard for the garbage collector to know what to do.
I kicked the tires a bit and found that the we are using Softreferences for just about everying, which make it hard for the garbage collector to know what to do.
Activity
Patrick Corless
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #37290 | Wed Jul 31 17:00:52 MDT 2013 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/Library.java
|
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #37292 | Wed Jul 31 20:35:05 MDT 2013 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/util/Library.java
|
Patrick Corless
made changes -
Fix Version/s | 5.0.3 [ 11070 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
I updated the Library's ConcurrentHashMap for refs and lookupReference2ICCBased to use WeakReferences to give the GC a better hint of what can be pruned. As a result of this simple change the UI is buttery smooth while scrolling through a document with thousands of pages. The memory usage also seems to stay much further below the max memory.