summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-03-02 03:08:17 +0100
committerdef <dennis@felsin9.de>2015-03-17 19:39:02 +0100
commit477b3594ebdeec0d8ecdf1f050a61af7e0f96cbf (patch)
tree0c61ec0f372382d99ec042487007ee8656d8829e /tests
parent07a50caf64d1ed2891349cff9a22b53c4ef61c2d (diff)
downloadNim-477b3594ebdeec0d8ecdf1f050a61af7e0f96cbf.tar.gz
Speed up asynchttpserver significantly using all the previous changes
- Export socket field of AsyncHttpServer and addHeaders proc for templates

- Make respond a template instead of proc because of how often it's called.
  This means no more "await" when invoking it.

- Optimize respond template with special case for empty headers and
  Content-Length entry

- newRequest doesn't allocate a hostname and body anymore because they're
  copied in later

- Major changes to processClient to prevent allocations and copies
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions