tls_wrap: proxy handle methods in prototype
authorFedor Indutny <fedor@indutny.com>
Mon, 9 Mar 2015 14:50:29 +0000 (10:50 -0400)
committerFedor Indutny <fedor@indutny.com>
Mon, 9 Mar 2015 18:48:21 +0000 (14:48 -0400)
commit8431fc53f10b3347223fb13523831e38e0ce8015
tree3dc51a2ff296f0cfd10276fd4b1d222bad864dcf
parent8070b1ff9943a53d520bf47ca1dd541f56a3c830
tls_wrap: proxy handle methods in prototype

Set proxied methods wrappers in `TLSWrap` prototype instead of doing it
on every socket allocation. Should speed up things a bit and will
certainly make heapsnapshot less verbose.

PR-URL: https://github.com/iojs/io.js/pull/1108
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
lib/_tls_wrap.js
src/tls_wrap.cc