discourse/lib/stylesheet
David Taylor 7568c7a101
PERF: Make stylesheet max_file_mtime calculation more efficient (#12876)
Plugins always store their stylesheets under `/assets/stylesheets`, so we can make the glob pattern much more specific. In my local development environment, this increases the speed of `Stylesheet::Manager.max_file_mtime` from ~65ms to ~3ms (20x faster). This significantly improves stylesheet regeneration time, and the responsiveness of the theme admin UI.

Note that this will have negligible effect in production, because in production the value of `max_file_mtime` is aggressively cached.
2021-04-28 17:27:18 +01:00
..
compiler.rb DEV: Refactor plugin SCSS compilation (#12359) 2021-03-12 11:17:42 -05:00
functions.rb DEV: Add SCSS helper to replace `asset-uri` and `image-uri` (#12664) 2021-04-12 13:57:39 +10:00
importer.rb DEV: Add SCSS helper to replace `asset-uri` and `image-uri` (#12664) 2021-04-12 13:57:39 +10:00
manager.rb PERF: Make stylesheet max_file_mtime calculation more efficient (#12876) 2021-04-28 17:27:18 +01:00
watcher.rb DEV: ensures stylesheet watcher isn't crashing with gems plugins (#12733) 2021-04-16 15:25:20 +02:00