Use a memory mapped file for sourcing
This commit is contained in:
parent
cde0c51cd6
commit
51ec1194f1
|
@ -1281,7 +1281,7 @@ const CommandDesc source_cmd = {
|
||||||
auto start_time = profile ? Clock::now() : Clock::time_point{};
|
auto start_time = profile ? Clock::now() : Clock::time_point{};
|
||||||
|
|
||||||
String path = real_path(parse_filename(parser[0]));
|
String path = real_path(parse_filename(parser[0]));
|
||||||
String file_content = read_file(path, true);
|
MappedFile file_content{path};
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
CommandManager::instance().execute(file_content, context,
|
CommandManager::instance().execute(file_content, context,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user