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

@ -416,9 +416,13 @@ type
ERecoverableError* = object of EInvalidValue
ESuggestDone* = object of EBase
const
InvalidFileIDX* = int32(-1)
var
filenameToIndexTbl = initTable[string, int32]()
fileInfos: seq[TFileInfo] = @[]
fileInfos*: seq[TFileInfo] = @[]
SystemFileIdx*: int32
proc newFileInfo(fullPath, projPath: string): TFileInfo =
result.fullPath = fullPath