Improved INSERT performance.
h3rald h3rald@h3rald.com
Fri, 22 May 2015 21:47:51 +0200
2 files changed,
3 insertions(+),
4 deletions(-)
M
lib/core.nim
→
lib/core.nim
@@ -344,7 +344,7 @@ # Ignore hidden files
continue files.add(f) # Import single files in batch - let batchSize = 50 + let batchSize = 100 let nBatches = ceil(files.len/batchSize).toInt var cFiles = 0 var cBatches = 0
M
lib/utils.nim
→
lib/utils.nim
@@ -113,9 +113,8 @@ res.add(("tags", %tags))
return %res proc toPlainText*(s: string): string = - var tags = peg"""'<' [^<>]+ '>'""" - var markup = peg"""{[_*/+!=?%$^~]+} {(!$1 .)+} $1""" - return s.replace(tags).replacef(markup, "$2") + var tags = peg"""'<' [^>]+ '>'""" + return s.replace(tags) proc checkIfBinary*(binary:int, contenttype:string): int = if binary == -1 and contenttype.isBinary: