Use a memory mapped file for sourcing

This commit is contained in:
Maxime Coste 2018-07-08 17:25:12 +10:00
parent cde0c51cd6
commit 51ec1194f1

View File

@ -1281,7 +1281,7 @@ const CommandDesc source_cmd = {
auto start_time = profile ? Clock::now() : Clock::time_point{};
String path = real_path(parse_filename(parser[0]));
String file_content = read_file(path, true);
MappedFile file_content{path};
try
{
CommandManager::instance().execute(file_content, context,