| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Fixed the paths of nimfix and nimsuggest to be relative.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
-d:release
|
|/ |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
FutureVar[T] is a new distinct Future type which is designed to be used
for situations where the highest performance is needed. It reduces the
number of Future allocations needed. It acts as a replacement for
'var' params in async procs.
This commit modifies @def-'s PR in order to make it safer. The recvLineInto
procedure has been modified to take a ``FutureVar[string]`` param instead of a
``ptr string`` param.
|
| | |
|
| |\
| | |
| | |
| | | |
def--clean-speedup-2
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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
|
| | |
| | |
| | |
| | | |
- resetStringTable proc
|
| | |
| | |
| | |
| | |
| | |
| | | |
- 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
|
|\ \ \
| | | |
| | | | |
Added explicit imports for compiler modules to fix compiling nimsuggest on it's own.
|
| | | |
| | | |
| | | |
| | | | |
modification
|
| | | |
| | | |
| | | |
| | | | |
See https://github.com/nim-lang/nimsuggest/issues/1
|
|\ \ \ \
| | | | |
| | | | | |
Fix Termios wrapper
|
|/ / / / |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Parser: Fix location (line, col) for diagnostics
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This ensures compiler points to the right place when claiming that ':' is
missing.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously parser was using lexMessage which was taking location from current
buffer position which was pointing after recently consumed token. But since
parser shows diagnostics about that token it should point to the location where
token starts.
This makes diagnostics like: `test.nim(2, 2) Error: ':' expected` point
properly at the beginning of the wrong token.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Most of editors/IDEs expect column numbers to start from 1, so (1, 1) means
beginning of the file.
This change applies only to diagnostics output, however Nim will still
internally number columns starting from 0.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Implements #2154.
|
| | | | | | |
|
| |\ \ \ \ \
| | | |_|/ /
| | |/| | |
| | | | | |
| | | | | | |
Conflicts:
compiler/semstmts.nim
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|