Public bug reported: In a matrix-multiplication heavy Python workload, I see something like 5-10% of the time being spent in get_tensor_type(). The attached patch memoizes the result, per type. Seems to work fine, but should be sanity checked (is per-type result ok?).
** Affects: dolfin Importance: Undecided Status: New -- You received this bug notification because you are a member of DOLFIN Team, which is subscribed to DOLFIN. https://bugs.launchpad.net/bugs/747297 Title: Python: Cache tensor types Status in DOLFIN: New Bug description: In a matrix-multiplication heavy Python workload, I see something like 5-10% of the time being spent in get_tensor_type(). The attached patch memoizes the result, per type. Seems to work fine, but should be sanity checked (is per-type result ok?). _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp