awslabs / aws-lambda-go-api-proxy

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin (https://gin-gonic.github.io/gin/ ) to AWS Lambda and Amazon API Gateway.
Apache License 2.0
1.04k stars 197 forks source link

About performance #74

Open sylvain101010 opened 4 years ago

sylvain101010 commented 4 years ago

Hi, Just to be sure, Is there any performance impact (regarding container reusing or anything else) if I do this:

// ...

func main() {
    // my initialization here

    lambda.Start(Handler)
}

instead of this

func init() {
    // my initialization here
}

// ...

func main() {
    lambda.Start(Handler)
}

?