Skip to content

Commit

Permalink
#435 #437 why not cache generic results?
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Mar 3, 2021
1 parent fb63bf2 commit b06ba33
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions script/parser/guide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,6 @@ function m.checkSameSimpleByDocType(status, doc, args)
local pieceResult = stepRefOfGeneric(status, piece, args, 'def')
for _, res in ipairs(pieceResult) do
results[#results+1] = res
status.hasGenericResult = true
end
else
local pieceResult = stepRefOfDocType(status, piece, 'def')
Expand Down Expand Up @@ -3151,10 +3150,6 @@ function m.getRefCache(status, obj, mode)
end
status.share.cacheLock[mode][obj] = {}
return nil, function ()
if status.hasGenericResult then
status.share.cacheLock[mode][obj] = nil
return
end
sourceCache = {}
local results = status.results
for i = 1, #results do
Expand Down

0 comments on commit b06ba33

Please sign in to comment.