diff options
author | def <dennis@felsin9.de> | 2015-03-02 02:52:55 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-03-17 19:39:02 +0100 |
commit | 07a50caf64d1ed2891349cff9a22b53c4ef61c2d (patch) | |
tree | 928e66d02c456e44d0628cab6b5af70d553c083d /compiler/forloops.nim | |
parent | 5aab532c9262bdd062d3f225a9402ede189b7a9b (diff) | |
download | Nim-07a50caf64d1ed2891349cff9a22b53c4ef61c2d.tar.gz |
Make asyncnet usable when avoiding allocations.
- readInto, readIntoBuf, are templates instead of procs now - New recvLineInto template that reads directly into a string instead of creating a new one. Used by recvLine proc now - Need fd and bufLen fields of AsyncSocketDesc exported because of the templates - recv returns a shallow string to prevent copying - This gives significant speedups, mostly by using templates instead of creating new Futures and waiting for them all the time.
Diffstat (limited to 'compiler/forloops.nim')
0 files changed, 0 insertions, 0 deletions