Optimize performance

This commit is contained in:
hrsh7th
2022-09-25 21:24:08 +09:00
parent 17a55b3d54
commit e1f31778a8
4 changed files with 13 additions and 11 deletions

View File

@@ -58,6 +58,7 @@ end
core.get_context = function(self, option)
local prev = self.context:clone()
prev.prev_context = nil
prev.cache = nil
local ctx = context.new(prev, option)
self:set_context(ctx)
return self.context