-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
The json encoder in LambdaMarshaller.marshall_response
turns unicode characters into unicode escape sequences (i.e. \u0123
) instead of regular unicode characters.
aws-lambda-python-runtime-interface-client/awslambdaric/lambda_runtime_marshaller.py
Line 52 in 970e9c1
return self.jsonEncoder.encode(response), "application/json" |
As a result, a unicode character contributes 6 bytes to the response size of the lambda instead of 2 bytes like a normal unicode character. The runtime interface clients for other languages (Ruby and NodeJS) do not produce unicode escape sequences. In the hypothetical case of a lambda that returns all unicode characters, a Ruby or NodeJS lambda function could return 3x as much data as a Python lambda function.
3265
Metadata
Metadata
Assignees
Labels
No labels