Lower heap and disk space used by compiling kafka tests #10915
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit Message:
This patch either removes mocks.h related headers altogether from tests
which never required this very heavyweight dependency, or simplifies the
most heavyweight server/mocks.h and elects only more specific mocks. It
especially useful for reducing resource consumption on Windows with
cl.exe
though compilation on Linux withclang
is sped up and leaneras well.
Additional Description:
Original/Revised Peak Working Set Memory for
cl.exe
(kb) used compiling (before/after simplifying mocks.h inclusions) on Windows3619976 283508 //test/extensions/filters/network/kafka:request_codec_integration_test
3621112 177212 //test/extensions/filters/network/kafka:response_codec_integration_test
3631680 308996 //test/extensions/filters/network/kafka:kafka_response_parser_test
3637000 309368 //test/extensions/filters/network/kafka:kafka_request_parser_test
3734736 93464 //test/extensions/filters/network/kafka:request_codec_unit_test
3735984 342468 //test/extensions/filters/network/kafka:response_codec_unit_test
4295272 2323440 //test/extensions/filters/network/kafka/broker:filter_unit_test
4339972 932984 //test/extensions/filters/network/kafka:requests_test
4366380 945936 //test/extensions/filters/network/kafka:request_codec_request_test
4410788 1020112 //test/extensions/filters/network/kafka:responses_test
4437292 1033328 //test/extensions/filters/network/kafka:response_codec_response_test
Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A