More memory use reductions
This commit is contained in:
parent
6a3cf3c572
commit
5da5e3b684
|
|
@ -101,6 +101,8 @@ int main(string[] args)
|
||||||
sw.stop();
|
sw.stop();
|
||||||
Log.info(ModuleCache.symbolsAllocated, " symbols cached.");
|
Log.info(ModuleCache.symbolsAllocated, " symbols cached.");
|
||||||
Log.info("Startup completed in ", sw.peek().to!("msecs", float), " milliseconds.");
|
Log.info("Startup completed in ", sw.peek().to!("msecs", float), " milliseconds.");
|
||||||
|
import core.memory : GC;
|
||||||
|
GC.minimize();
|
||||||
|
|
||||||
|
|
||||||
// No relative paths
|
// No relative paths
|
||||||
|
|
@ -162,7 +164,10 @@ int main(string[] args)
|
||||||
s.send(responseBytes);
|
s.send(responseBytes);
|
||||||
}
|
}
|
||||||
if (request.kind & RequestKind.addImport)
|
if (request.kind & RequestKind.addImport)
|
||||||
|
{
|
||||||
ModuleCache.addImportPaths(request.importPaths);
|
ModuleCache.addImportPaths(request.importPaths);
|
||||||
|
GC.minimize();
|
||||||
|
}
|
||||||
if (request.kind & RequestKind.autocomplete)
|
if (request.kind & RequestKind.autocomplete)
|
||||||
{
|
{
|
||||||
Log.info("Getting completions");
|
Log.info("Getting completions");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue