Files
swift-nio-http2/docker/docker-compose.2204.main.yaml
T
George Barnett ab04d05c6f Reduce allocs in HTTP2StreamChannel (#449)
Motivation:

The HTTP2StreamChannel stores two atomic booleans for whether the
channel is active and writable. These are only accessed externally and
access is relatively infrequent. Each atomic requires an allocation,
instead we can just protect each with a single lock.

Modifications:

- Combine the two atomics into a single 'flags' struct protected by a
  locked value box

Result:

Fewer allocations
2024-07-18 01:13:16 -07:00

55 lines
2.1 KiB
YAML

version: "3"
services:
runtime-setup:
image: swift-nio-http2:22.04-main
build:
args:
base_image: "swiftlang/swift:nightly-main-jammy"
h2spec_version: "2.2.1"
unit-tests:
image: swift-nio-http2:22.04-main
integration-tests:
image: swift-nio-http2:22.04-main
performance-test:
image: swift-nio-http2:22.04-main
h2spec:
image: swift-nio-http2:22.04-main
documentation-check:
image: swift-nio-http2:22.04-main
test:
image: swift-nio-http2:22.04-main
environment:
- MAX_ALLOCS_ALLOWED_1k_requests_inline_interleaved=30150
- MAX_ALLOCS_ALLOWED_1k_requests_inline_noninterleaved=29100
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=36150
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=35100
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=278050
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response_inline=263050
- MAX_ALLOCS_ALLOWED_client_server_request_response=247050
- MAX_ALLOCS_ALLOWED_client_server_request_response_inline=238050
- MAX_ALLOCS_ALLOWED_client_server_request_response_many=1192050
- MAX_ALLOCS_ALLOWED_client_server_request_response_many_inline=883050
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=36050
- MAX_ALLOCS_ALLOWED_create_client_stream_channel_inline=36050
- MAX_ALLOCS_ALLOWED_create_client_stream_channel_inline_no_promise_based_API=36050
- MAX_ALLOCS_ALLOWED_create_client_stream_channel_no_promise_based_API=36050
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form=200050
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace=200050
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_long_string=300050
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_short_string=200050
- MAX_ALLOCS_ALLOWED_hpack_decoding=5050
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=262650
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent_inline=261750
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
shell:
image: swift-nio-http2:22.04-main