Convert TransportInfo SSL fields to shared_ptrs
authorViswanath Sivakumar <viswanath@fb.com>
Wed, 28 Jan 2015 20:08:36 +0000 (12:08 -0800)
committerwoo <woo@fb.com>
Mon, 2 Feb 2015 21:14:08 +0000 (13:14 -0800)
commita803ace46cb1d6e2a388bf987331d0645b77730f
treeae5dd170a0ec72d70f3f5aab9de155e05f324a49
parent80702b5d1ad84dd21cfa7c023810ec2c36991307
Convert TransportInfo SSL fields to shared_ptrs

Summary:
We do a lot of copying of TransportInfo in proxygen, and in most cases
the SSL structs don't change after connection establishment. We could
cut down on memory usage by sharing these huge strings. This is
especially true with SPDY where all streams belonging to a session could
share these fields.

Facebook:

Test Plan: Unit tests, will canary

Reviewed By: afrind@fb.com

Subscribers: fugalh, bmatheny, ssl-diffs@, folly-diffs@, jsedgwick, woo

FB internal diff: D1807557

Tasks: 5343753

Signature: t1:1807557:1422472932:53038345fca620632097586fb9e410bca8fe748d
folly/wangle/acceptor/Acceptor.cpp
folly/wangle/acceptor/TransportInfo.h