Reduce AsyncSocket code size
authorSean Cannella <seanc@fb.com>
Wed, 25 Feb 2015 18:34:25 +0000 (10:34 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:29:57 +0000 (19:29 -0800)
commit1cb4f91b8870c5dd1dfb7ac515f081a522b19be8
tree10eb9888fbee843eb5e415f52fca7e8281f0a8e7
parent0f6e30432ea98c2ef4542499a8cfe6181d1ace24
Reduce AsyncSocket code size

Summary:
Manual inspection of AsyncSocket.o shows the constructors are generating ugly
(and large) code. Call the smaller constructors instead of duplicating the code. This
reduces the debug .o size from ~1.9MB to ~1.6MB.

Test Plan: existing tests

Reviewed By: benyluo@fb.com

Subscribers: mzlee, folly-diffs@, yfeldblum, mathieubaudet, subodh, pgriess, benyluo

FB internal diff: D1870896

Signature: t1:1870896:1424885638:d37fc79c0f88d04109c8bb73e632dc506b9f773b
folly/io/async/AsyncSocket.cpp