Switch back to memory mapped files in 'loadFile'

This commit is contained in:
Zahary Karadjov 2020-05-06 15:07:35 +03:00
parent 5e8ec3485c
commit d7ed9c84d3
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 1 deletions

View File

@ -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)