I use serverless functions a lot and the tips you provided in this article are really helpful!
Some of the tips will be really helpful in other serverless platforms which have a strict runtime of 1s.
Just because to avoid installing unnecessary packages I prefer writing my own functions whenever possible.