dgram: don't call into js when send cb is omitted
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 9 Aug 2013 02:48:10 +0000 (04:48 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 9 Aug 2013 16:56:45 +0000 (18:56 +0200)
commit1449739de00859d44a2eff9a676172fdabbfcd60
tree2d6d0de6e75acc1d93f47cf3c88980a5a26a3cec
parent41ec6d0580d91c4f2e5f30f279225eb4ec07886d
dgram: don't call into js when send cb is omitted

Speed up dgram.Socket#send()-heavy code a little by omitting the call
into JS land when the user doesn't pass us a completion callback.
lib/dgram.js
src/udp_wrap.cc