summary refs log tree commit diff stats
path: root/compiler/nimsuggest
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 /compiler/nimsuggest
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 'compiler/nimsuggest')
0 files changed, 0 insertions, 0 deletions
130' href='#n130'>130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232