CaaS in-memory caching

removed some redundant filepath params and variables and
switched to canonical paths in most places
This commit is contained in:
Zahary Karadjov 2012-11-16 01:48:12 +02:00
commit 36e25a6849
23 changed files with 299 additions and 215 deletions

View file

@ -14,7 +14,7 @@ when defined(gcc) and defined(windows):
{.link: "icons/nimrod_icon.o".}
import
times, commands, lexer, condsyms, options, msgs, nversion, nimconf, ropes,
commands, lexer, condsyms, options, msgs, nversion, nimconf, ropes,
extccomp, strutils, os, platform, main, parseopt, service
when hasTinyCBackend:
@ -32,7 +32,6 @@ proc prependCurDir(f: string): string =
result = f
proc HandleCmdLine() =
var start = epochTime()
if paramCount() == 0:
writeCommandLineUsage()
else:
@ -60,10 +59,6 @@ proc HandleCmdLine() =
when hasTinyCBackend:
if gCmd == cmdRun:
tccgen.run()
if gCmd notin {cmdInterpret, cmdRun}:
rawMessage(hintSuccessX, [$gLinesCompiled,
formatFloat(epochTime() - start, ffDecimal, 3),
formatSize(getTotalMem())])
if optRun in gGlobalOptions:
if gCmd == cmdCompileToEcmaScript:
var ex = quoteIfContainsWhite(