Skip to content

Startup time optimization - redundant ObjectMappers #91

Closed
@cslee00

Description

@cslee00

Profiling to reduce lambda cold-start time (Spring context, not Boot).

There are 2 or 3 ObjectMappers created, which take a moderate amount of time to initialize:

  1. inside AwsProxyRequestBuilder (new ObjectMapper())
  2. inside AwsProxyExceptionHandler (new ObjectMapper())
  3. user-created when using RequestStreamHandler (new ObjectMapper())

#1 & #2 could be hoisted out to a single instantiation.

Ideally the same ObjectMapper would be used for #3, possibly through handler.proxy( inputStream, context) to hide this inside the container.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions