PrimitiveCache

org.nlogo.generate.PrimitiveCache

Cache ClassReader objects to speed up bytecode inlining. Instead of reading in the bytes for each of the _prim classes each time, using a getResourceAsStream() call, we keep a cache of the ClassReader objects, which maps classnames to the corresponding ClassReaders. This resulted in a good speedup, though not as much as I had hoped for. ~Forrest (7/9/2006)

Attributes

Source
PrimitiveCache.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def getClassReader(c: Class[_]): ClassReader

Attributes

Source
PrimitiveCache.scala