I don't expect any perf improvements by using this cache, as you're simply moving the row lookup from render-time to fetch-time. However, this is a cleaner abstraction, and allows us to fail early if the palette doesn't exist.
6.4 KiB
6.4 KiB