performance tweaks

Ignore-this: 94f2a56211ef328b84a5d16cc5cab159

darcs-hash:20140430055936-c21fe-87696f27b034594298c438ee2c514fd3609ba41f
more tweaks

Ignore-this: f0f27594f754d5d5497d3d96221bfebf

darcs-hash:20140430061525-c21fe-1cf2d6f9a87b69af5385bde51e4fe8a8014db302
added stats for udp in debug window

Ignore-this: 11857b6e083854ed9d99620bf74a0ab2

darcs-hash:20140430062230-c21fe-0b1945bdaec891492cd40ea476a8ea2936b96876
woops

Ignore-this: 80fa3da593a3a4e114f80e4098a27c75

darcs-hash:20140430062308-c21fe-b362699774ce97e7e15c2974b0361f9c68f1285b
big performance improvement in udp message handling

Ignore-this: 84f14330b6c3938a49f8941318c43e08

1. no more locks
2. basic flow control
3. improved resend

darcs-hash:20140501052920-c21fe-d40ef41431177607177cf3cadb7207d81ceb4027
using copy for pen

Ignore-this: e7dc2dcad62ddf6287e746c3a2c525bb

darcs-hash:20140501053153-c21fe-102ea3afd0a3e9b397cb21a888378fa768492924
changed resend again, it was wacky

Ignore-this: fce56bb043876de2be89be82de672c2c

darcs-hash:20140501055555-c21fe-067dde5e29aa63b30776c5b02090427316efe1bb
more resend tweaks

Ignore-this: 354d02a1574d686fdd48750f7215f83c

darcs-hash:20140501062910-c21fe-49c15b1676a254659a839a96ce08bb658bc60c57
refactored resend

Ignore-this: 8324a5a6ba32fea4755a4747fa990350

darcs-hash:20140501070846-c21fe-d591620658159424ea5a76cffca92b1ee9b9c667