I've got a question and I would love to get an answer.
I've a Lambda function that uses Max memory of 31 MB and the allocated memory configured is 128MB it would take 2556.68 ms.
However, when increasing the allocated memory to max 1536 MB it takes only 621.81 ms to be fully executed and the MAX memory used is exactly the same 31 MB.
Why the Lambda function executed much faster when used memory is exactly the same in the two cases?