Commit e6a0b123 authored by Mike Schurman's avatar Mike Schurman
Browse files

Cache member in SetMemberCache

SetMemberCache was no longer caching the member passed to it. This was causing performance problems, in which a script was taking 3-4 times longer to run than without proper caching. There was a missing line SetMemberCache which fixed the issue.

A concern with this change is the offending line was removed during a refactor, in which the commit message said "fixing generic exceptions". I do not know which generic exceptions were fixed during that commit, and don't know if breaking caching, or removing this line was intentional.
parent 26775782
...@@ -517,6 +517,8 @@ namespace NLua ...@@ -517,6 +517,8 @@ namespace NLua
members = new Dictionary<object, object>(); members = new Dictionary<object, object>();
memberCache[objType] = members; memberCache[objType] = members;
} }
members [memberName] = member;
} }
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment