It was detected that Aeson encoding had high memory usage when the json payload was large, around x60 the payload size. With this change we get around x10 payload size memory usage. The encodeUtf8(when doing a Text -> ByteString with `toS`) function on a large payload also contributed to the high memory usage. Main idea to reduce the memory usage was to let the ByteString coming from the request body go to the database unchanged.
16 lines
358 B
YAML
16 lines
358 B
YAML
resolver: lts-9.6
|
|
extra-deps:
|
|
- configurator-ng-0.0.0.1
|
|
- critbit-0.2.0.0
|
|
- hjsonpointer-1.1.1
|
|
- hjsonschema-1.5.0.1
|
|
- Ranged-sets-0.3.0
|
|
- protolude-0.2
|
|
- hasql-1.1
|
|
- hasql-pool-0.4.3
|
|
- hasql-transaction-0.5.2
|
|
ghc-options:
|
|
postgrest: -O2 -Werror -Wall -fwarn-identities -fno-warn-redundant-constraints
|
|
nix:
|
|
packages: [postgresql, zlib]
|