Left-on-Read / leftonread

Left on Read
https://leftonread.me/
Other
173 stars 17 forks source link

perf: optimize WrappedGradient #460

Closed amilajack closed 2 years ago

amilajack commented 2 years ago

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

vercel[bot] commented 2 years 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 2 years ago

gradient after change (ignore gif compression)

wrapped-gradient

alexdanilowicz commented 2 years 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.