summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Rename clearStringTable to cleardef2015-03-172-3/+3
|
* Some style cleanupdef2015-03-171-3/+3
|
* Make respond a template againdef2015-03-171-11/+11
|
* Move recvInto to asyncnet and don't export itdef2015-03-172-120/+120
|
* Don't export readInto* templatesdef2015-03-171-2/+2
|
* Make recvLineInto a proc instead of templatedef2015-03-172-52/+50
|
* Rename resetStringTable to clearStringTabledef2015-03-172-2/+2
|
* Remove unused newRequest procdef2015-03-171-3/+0
|
* Document asynchttpserver's respond templatedef2015-03-171-1/+1
|
* PNimrodNode -> NimNode in asyncdispatchdef2015-03-171-3/+3
|
* Speed up asynchttpserver significantly using all the previous changesdef2015-03-172-47/+53
| | | | | | | | | | | | | | | - 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
* Make asyncnet usable when avoiding allocations.def2015-03-171-61/+98
| | | | | | | | | | | | | | | - 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.
* Make asyncdispatch usable when preventing allocationsdef2015-03-171-0/+112
| | | | | | | | | | - Added a recvInto proc that takes a cstring as argument and reads into it instead of returning a newly allocated string. This is pretty unnice because of code duplication with recv. Calling recvInto from recv is not a good solution because of the additional future that gets created. - Windows version is totally untested
* Make strtabs module usable when avoiding allocationsdef2015-03-171-0/+6
| | | | - resetStringTable proc
* Make uri module usable for faster URI parsing:def2015-03-171-10/+23
| | | | | | - A version of parseUri that takes a uri as parameter and modifies it - Export initUri so you can use the new parseUri better - Avoid creating new strings
* Rename PNimrodNode to NimNodedef2015-03-176-260/+260
|
* Making tuples anonymous (so far... not finished).Hans Raaf2015-03-171-23/+22
|
* Enables use of NSGetEnviron for osx binary compatibility. Refs #965.Grzegorz Adam Hankiewicz2015-03-141-2/+2
|
* Merge pull request #2296 from SSPkrolik/redis-scan-implementationDominik Picheta2015-03-131-0/+24
|\ | | | | Added implementation for Redis SCAN command
| * Added implementation for Redis SCAN commandkrolik2015-03-091-0/+24
| |
* | Merge pull request #2268 from ziotom78/develAndreas Rumpf2015-03-131-0/+78
|\ \ | | | | | | New templates for getting the limits of FP types added.
| * | New template `fpRadix` instead of the exported var `FP_RADIX`Maurizio Tomasi2015-03-111-1/+3
| | |
| * | Grammar fixes in the docstringsMaurizio Tomasi2015-03-051-8/+8
| | |
| * | New templates for getting the limits of FP types added.Maurizio Tomasi2015-03-051-0/+76
| | | | | | | | | | | | | | | | | | | | | New variable "FP_RADIX" and new templates "mantissaDigits", "digits", "minExponent", "maxExponent", "min10Exponent", "max10Exponent", "minimumPositiveValue", "maximumPositiveValue", and "epsilon" added to retrieve the limits of floating-point types.
* | | fixed log*(logger: RollingFileLogger, level: Level,teroz2015-03-131-1/+1
| | | | | | | | | | | | frmt: string, args: varargs[string, ])
* | | Merge pull request #2309 from oderwat/fix-tznameDominik Picheta2015-03-121-0/+5
|\ \ \ | | | | | | | | Fixes tzname on osx (and presumable bsd).
| * | | Adding a call to tzset() to implicitly initialize the tzname infos.Hans Raaf2015-03-121-0/+5
| | | |
* | | | Merge pull request #2321 from def-/times-jsAndreas Rumpf2015-03-121-8/+9
|\ \ \ \ | | | | | | | | | | Fix some compiler warnings in times
| * | | | Fix some compiler warnings in timesdef2015-03-121-8/+9
| |/ / /
* / / / MD5 module: fixed parameter nameAraq2015-03-121-3/+3
|/ / /
* | | Merge pull request #2307 from def-/test-fixes-2Andreas Rumpf2015-03-122-426/+2
|\ \ \ | | | | | | | | Test fixes 2
| * | | Remove unused rawsockets.pretty.nimdef2015-03-101-426/+0
| | | |
| * | | Check that file passed to getFileInfo is not nildef2015-03-101-0/+2
| | | |
* | | | Better documentation and rename of sortByIt().Hans Raaf2015-03-111-4/+17
| | | |
* | | | Merge pull request #2311 from def-/result-macrosDominik Picheta2015-03-111-1/+12
|\ \ \ \ | | | | | | | | | | Get rid of 'result shadowed' warning for async procs
| * | | | Get rid of 'result shadowed' warning for async procsdef2015-03-111-1/+12
| |/ / /
* / / / Fix doc for asyncfiledef2015-03-111-8/+8
|/ / /
* | | fixes #2220; #2219; breaks #2022; for #2022 callsite needs to be usedAraq2015-03-101-14/+16
| | |
* | | Merge pull request #2279 from nathan-hoad/sni-support-for-opensslDominik Picheta2015-03-101-15/+34
|\ \ \ | | | | | | | | Add SNI support to client and server sockets.
| * | | Remvoe the visibility on these, given their forward declarations alreadyNathan Hoad2015-03-081-2/+2
| | | | | | | | | | | | | | | | specify it.
| * | | isIpAddress doesn't have any effects, so fix it up to clean up connect.Nathan Hoad2015-03-081-2/+2
| | | |
| * | | Make IP address checking more obvious, and add tests for the net module.Nathan Hoad2015-03-071-3/+13
| | | |
| * | | Add SNI support to client and server sockets.Nathan Hoad2015-03-071-15/+24
| | | |
* | | | Merge pull request #2291 from def-/parsexml-again2Andreas Rumpf2015-03-081-8/+5
|\ \ \ \ | | | | | | | | | | Revert my.c changes in parsexml
| * | | | Revert my.c changes in parsexmldef2015-03-081-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Remeasured with the string copy fix (#2255) and isn't faster anymore, so we should opt for the simpler code again.
* | | | | don't use conio.h on windows (#2137)Araq2015-03-081-10/+8
|/ / / /
* | | | Merge pull request #2171 from def-/xmlparse-performanceAndreas Rumpf2015-03-081-18/+22
|\ \ \ \ | | | | | | | | | | Improve performance of parsexml
| * | | | parsexml: Use slices instead of copyMemdef2015-02-271-2/+2
| | | | |
| * | | | Use templates in parsexml instead for performancedef2015-02-271-14/+14
| | | | |
| * | | | Improve performance of parsexmldef2015-02-271-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | - Prevent string copies when not necessary - Don't allocate a new XMLParser.c all the time