The new Blaze computation pipeline stresses the expression system much more. The first performance issue to pop up is in datashape, notably hashing a datashape calls this property in Mono quite a bit
@property
def parameters(self):
if hasattr(self, '__slots__'):
return tuple(getattr(self, slot) for slot in self.__slots__)
else:
return self._parameters
Perhaps the hasattr and getattr bits are slow? This could be resolved either in datashape or in blaze. Caching the hash or parameters locally is a thought.
The new Blaze computation pipeline stresses the expression system much more. The first performance issue to pop up is in datashape, notably hashing a datashape calls this property in
Mono
quite a bitPerhaps the
hasattr
andgetattr
bits are slow? This could be resolved either indatashape
or inblaze
. Caching the hash or parameters locally is a thought.