Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2123

Compiled CoffeeScript and Less files should be cached in development mode

    XMLWordPrintableJSON

Details

    Description

      When any asset changes, all caches are (normally) discarded.

      This isn't normally a major issue; Tapestry can re-read files, and repopulate its caches quickly.

      However, CoffeeScript to JavaScript compilation can be quite slow ... reasonable sized files may take 10 or 15 seconds to compile (when using the sluggish Rhino JavaScript VM).

      It makes sense, then, to cache those files differently; a cache that tracks the source resource path and the checksum for the source resource and matches that to the compiled content stream. After changing a single file, only that one file would actually have to be recompiled; all the others would be served from the development-mode cache. The cost would be a quick scan of the file contents to build a checksum, to determine if the file content has changed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: