Commit Graph

3518 Commits

Author SHA1 Message Date
Dominik Picheta
880e39d123 Merge pull request #2358 from gradha/pr_expands_paths_in_find_exe
Expands tildes for entries in $PATH when looking for a binary.
2015-03-20 19:15:46 +00:00
Araq
a827050718 fixed cuint definition 2015-03-18 11:42:37 +01:00
def
6523d80211 Rename clearStringTable to clear 2015-03-17 22:48:34 +01:00
def
ee9499ac89 Some style cleanup 2015-03-17 22:24:12 +01:00
def
2410e667bc Make respond a template again 2015-03-17 22:05:10 +01:00
Grzegorz Adam Hankiewicz
1320efcf90 Excludes windows platfrom from $PATH tilde expansion. Refs #2358. 2015-03-17 20:07:20 +01:00
def
134eb6e582 Move recvInto to asyncnet and don't export it 2015-03-17 19:41:05 +01:00
def
836819d6b6 Don't export readInto* templates 2015-03-17 19:40:22 +01:00
def
e127ed77b1 Make recvLineInto a proc instead of template 2015-03-17 19:40:22 +01:00
def
43ed83384c Rename resetStringTable to clearStringTable 2015-03-17 19:40:22 +01:00
def
58c29c29ae Remove unused newRequest proc 2015-03-17 19:40:22 +01:00
def
6830c65560 Document asynchttpserver's respond template 2015-03-17 19:40:22 +01:00
def
7b4724ea27 PNimrodNode -> NimNode in asyncdispatch 2015-03-17 19:40:22 +01:00
def
477b3594eb 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
2015-03-17 19:39:02 +01:00
def
07a50caf64 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.
2015-03-17 19:39:02 +01:00
def
5aab532c92 Make asyncdispatch usable when preventing allocations
- 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
2015-03-17 19:39:02 +01:00
def
524b68d0ed Make strtabs module usable when avoiding allocations
- resetStringTable proc
2015-03-17 19:39:02 +01:00
def
650a75beea Make uri module usable for faster URI parsing:
- 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
2015-03-17 19:39:02 +01:00
def
fd4e629905 Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
Andreas Rumpf
8e651fa0d4 Merge pull request #2326 from oderwat/fix-totable
Making tuples anonymous (so far... not finished).
2015-03-17 10:29:32 +01:00
Andreas Rumpf
3125873b4a Merge pull request #2337 from kemege/db_charset
Add character set options when opening DB connection, default to UTF-8
2015-03-17 01:32:26 +01:00
Hans Raaf
b42c729da4 Making tuples anonymous (so far... not finished). 2015-03-17 00:15:23 +01:00
Grzegorz Adam Hankiewicz
79934b9d68 Expands tildes for entries in $PATH when looking for a binary. 2015-03-16 22:01:56 +01:00
Simon Hafner
26749de828 re.match returns true on zero-length match #2354 2015-03-16 15:05:02 -05:00
Andreas Rumpf
169e89173c Merge pull request #2332 from def-/sections-toc-ref
rstgen: Unique reference names in TOC
2015-03-16 10:37:28 +01:00
Andreas Rumpf
b12ce48c78 Merge pull request #2339 from gradha/pr_fixes_osx_environ_use
Enables use of NSGetEnviron for osx binary compatibility. Refs #965.
2015-03-16 10:36:45 +01:00
Andreas Rumpf
327b56d5e1 Merge pull request #2343 from philip-wernersbach/fix-pthreads-under-cpp
Fix issues with pthread_create when compiling under C++ mode.
2015-03-16 10:27:55 +01:00
KeMeGe
171d51a08c move database encoding options to setEncoding(), leave open() as it is 2015-03-16 13:53:38 +08:00
Dominik Picheta
1e9ab3bb0a Fixes #2323. Fixes #2148. 2015-03-15 22:06:26 +00:00
Philip Wernersbach
f8d6d74368 Fix pthread_create binding when compiling in C++ mode.
C++ has different rules for void pointers, which causes the binding
to be invalid when compiling in C++ mode.
2015-03-15 17:33:46 -04:00
Grzegorz Adam Hankiewicz
ff94ce9d0b Enables use of NSGetEnviron for osx binary compatibility. Refs #965. 2015-03-14 21:35:33 +01:00
KeMeGe
ca8102b96d Add character set options when opening DB connection 2015-03-14 15:21:38 +08:00
Dominik Picheta
658600a9b9 Merge pull request #2296 from SSPkrolik/redis-scan-implementation
Added implementation for Redis SCAN command
2015-03-13 20:42:18 +00:00
Andreas Rumpf
5f347fad66 Merge pull request #2268 from ziotom78/devel
New templates for getting the limits of FP types added.
2015-03-13 15:37:15 +01:00
Andreas Rumpf
4341e026b1 Merge pull request #2328 from def-/fix-fifo
Make readFile work with FIFO files
2015-03-13 15:36:30 +01:00
teroz
8132723317 fixed log*(logger: RollingFileLogger, level: Level,
frmt: string, args: varargs[string, ])
2015-03-13 12:05:02 +02:00
def
0255876055 rstgen: Unique reference names in TOC
- Fixes #2269
- Keeps track of higher level section to create unique reference names
2015-03-13 01:32:23 +01:00
Dominik Picheta
d6c957e9b4 Removed osinfo_* modules.
They will be available under the 'osinfo' Nimble package.
2015-03-12 23:40:58 +00:00
def
ef9a3b4d3b Speed up readLine by using getc_unlocked
- Only on POSIX and Windows (_fgetc_nolock here) systems
- File is locked to our thread before and unlocked after readLine
- About 3 times faster in some simple tests
2015-03-12 22:46:18 +01:00
def
aa7e7ee270 Make readFile work with FIFO files 2015-03-12 21:17:39 +01:00
Dominik Picheta
c707923cc1 Merge pull request #2309 from oderwat/fix-tzname
Fixes tzname on osx (and presumable bsd).
2015-03-12 17:19:04 +00:00
Hans Raaf
798e5c7552 Adding a call to tzset() to implicitly initialize the tzname infos. 2015-03-12 17:00:06 +01:00
Andreas Rumpf
e0c3b8a452 Merge pull request #2321 from def-/times-js
Fix some compiler warnings in times
2015-03-12 16:18:55 +01:00
Andreas Rumpf
4051e436b6 Merge pull request #2320 from aurora/ssl-sigsegv
openssl: do not set mem functions on osx
2015-03-12 16:17:47 +01:00
Araq
45a7c51f0c MD5 module: fixed parameter name 2015-03-12 16:10:42 +01:00
def
44e68be13b Fix some compiler warnings in times 2015-03-12 13:15:19 +01:00
Harald Lapp
3ccf667899 do not set mem functions on osx 2015-03-12 12:48:28 +01:00
Araq
3aad16e337 fixes #1845, fixes #2224 2015-03-12 11:08:03 +01:00
Andreas Rumpf
b97207a74c Merge pull request #2307 from def-/test-fixes-2
Test fixes 2
2015-03-12 11:03:08 +01:00
Hans Raaf
06ea53e692 Better documentation and rename of sortByIt(). 2015-03-11 22:22:58 +01:00