all repos — litestore @ 6921c719266e8c309f20f2947dc6228c7293d769

A minimalist nosql document store.

Improved INSERT performance.
h3rald h3rald@h3rald.com
Fri, 22 May 2015 21:47:51 +0200
commit

6921c719266e8c309f20f2947dc6228c7293d769

parent

35b9fb7ef4833bff403ef325de46133b628f6b11

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M lib/core.nimlib/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.nimlib/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: