Skip to content

Instantly share code, notes, and snippets.

@jhawthorn
Last active October 4, 2021 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhawthorn/3b1265c6cd61ee90e611e05a762c6771 to your computer and use it in GitHub Desktop.
Save jhawthorn/3b1265c6cd61ee90e611e05a762c6771 to your computer and use it in GitHub Desktop.
Plan for Tuesday's stream 2021-10-05

Will be at https://twitch.tv/seejohnrun 4:00PM PST

Plan for Tuesday's Stream: ActionView fragment cache digesting

On a previous stream we looked at encapsulating Action View template details (format, locale, and variant) in a nice class rails/rails#42210. That code is now being used for template lookups rails/rails#42945.

Today I'd like to use these template details to change how we do Action View's fragment digests.

Currently these fragments are calculated separately for each different set of details, which means it can't be done at boot and uses more memory than it needs to. I think it would be better to do the template digesting once at boot time (rather than on the first request to encounter it), which would be faster and use less memory.

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment