commit | fe8235a9799c0e6b0d49d1d46431e232ab26324d | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Fri Jun 17 09:40:04 2011 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Fri Jun 17 09:49:29 2011 -0700 |
tree | cbd23ee7dea41377ddb890adcc5da34ed182e8a5 | |
parent | a40c72dc588b60f85ca8ec4007a690cb2d6f17f1 [diff] |
Implement aggressive caching in PrologClassLoader Rather than doing everything dynamically, implement the very commonly used entry point logic by looking up predicates in an internal hash map, reusing cached constructors when the predicate has already been validated as being a proper type the Prolog intepreter can access.