Left-on-Read / leftonread

Left on Read
https://leftonread.me/
Other
166 stars 16 forks source link

perf: optimize WrappedGradient #460

Closed amilajack closed 1 year ago

amilajack commented 1 year ago

closes https://github.com/Left-on-Read/leftonread/issues/453

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
leftonread-web ✅ Ready (Inspect) Visit Preview Nov 9, 2022 at 6:29PM (UTC)
amilajack commented 1 year ago

gradient after change (ignore gif compression)

wrapped-gradient

alexdanilowicz commented 1 year ago

Thank you! Just checked it out on my machine locally and looks good. Didn't realize a simple memo would improve the performance so much, I guess Palette can prove it! Will get this out in the next release today so we can start consuming the results.