3 ms·
It might be reasonable to go without a garbage collector if your whole lifetime is so short. GC by decapitation. Kinda clever. But other than that it's impossi
by jfengel 1y ago
It might be reasonable to go without a garbage collector if your whole lifetime is so short. GC by decapitation. Kinda clever.
But other than that it's impossible to assess performance with such a tiny toy.
- bastawhiz 1y agoIf you throw away your memory on every request, every request is a cold start. You've reduced your one-time startup cost but now you pay that reduced cost on every request.
- hvb2 1y ago> It might be reasonable to go without a garbage collector if your whole lifetime is so short. That isn't how lambda works. A single lambda instance can run for 10s of minutes handling thousands or requests. So not cleaning up memory sounds like a problem to me since you're billed by the GB/second