new rebuilding perf improvements vs old
# random
t
new rebuilding perf improvements vs old
I don't think my fps is high enough to see lol
o
Is this some esbuild voodoo?
t
tbh idk why it wasn't always this fast since we've always used esbuild
some issue inside SST but I'm starting to rewrite all the filewatching / rebuilding
Tried it on a fat lambda (25mb) and it takes 600ms so still pretty fast
k
Is this already out?
This looks awesome 👏
m
Looks 👍
t
Not yet hopefully end of next week
m
Nice
k
@thdxr I am seeing my builds becoming very slow when sst builds a lot of functions I remembered this thread and just thought I ask if there is any update on this
t
My primary focus right now is on this. The refactor ended up being more intense than I expected so it's probably going to take the rest of this week at least
In the update even if you have a lot of functions we don't build them all ahead of time, they're built on first invoke
k
O that is smart 🙂
Thanks for working on this 🙂
s
@thdxr sorry if it's a dumb question, But what is the easiest way to find the lambda function size?
t
There's a few ways, look in your .sst/artifacts folder for the payload size. Or you can look in AWS console. In practice you probably want a more in depth analysis:
npx esbuild --analyze=verbose --target=esnext --platform=node --target=esnext --format=esm --bundle ./backend/functions/auth/events.ts