ICEpdf
  1. ICEpdf
  2. PDF-195

Page initialization in RI can sometimes happen on AWT thread instead of pageInitializer thread.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      any

      Description

      When doing some profiling I noticed that painting thread would sometimes kick off page initialization rather then the pageInitialization thread pool. The first line of the paint method will kick off the page.init(). To avoid this type of intitialization I check to see if a pagePainter object is present, and is always present in the default RI. If present and page initialization hasn't happened we return and wait for the page component to handle the initialization call, page painting will occur later.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Patrick Corless made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.1 [ 10227 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Update page class, closing.

        Show
        Patrick Corless added a comment - Update page class, closing.
        Patrick Corless created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #22034 Tue Jul 27 08:25:12 MDT 2010 patrick.corless PDF-195 tweaked page init code to not self init page if pagePainter callback is present. This helps a bit with performance and locking issues.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: