From d7ed9c84d34687150eb235cdd4c7673eb51d9f53 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 6 May 2020 15:07:35 +0300 Subject: [PATCH] Switch back to memory mapped files in 'loadFile' --- serialization.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serialization.nim b/serialization.nim index be381be..b227fa4 100644 --- a/serialization.nim +++ b/serialization.nim @@ -89,7 +89,7 @@ template loadFile*(Format: distinct type, params: varargs[untyped]): auto = mixin init, ReaderType, readValue - var stream = fileInput(filename) + var stream = memFileInput(filename) try: var reader = unpackArgs(init, [ReaderType(Format), stream, params]) reader.readValue(RecordType)