Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263886

CSS stylesheet processing could skip rereading when headers or timestamps are unchanged

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx16
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      As discussed in this openjfx-dev email thread, there are some inefficiencies in process CSS stylesheets:

      https://mail.openjdk.java.net/pipermail/openjfx-dev/2021-March/029303.html

      Whenever a stylesheet is processed, it is reread from the provided URL. A checksum is generated to see if it need to be reprocessed, but even the act of reading the HTTPS stream or a File is overhead that may be able to be avoided if we checked the HTTP header or File timestamp as suggested by Richard Bair in this response:

      https://mail.openjdk.java.net/pipermail/openjfx-dev/2021-March/029311.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: