YaspGrid needs to construct a geometry to return a GeometryType
Today, when analyzing performance for low order DG methods with @rhess, we found out that the entity implementation of YaspGrid
needs to construct a Geometry
object whenever entity.type()
is called. This (together with dune-localfunctions@99a99e85) caused a big performance penalty according to our tests. This is happening because YaspEntity
inherits from EntityDefaultImplementation
which returns impl().geometry().type()
. A faster approach would be to overload the type()
function to construct the geometry type on-the-fly.