While adding optimizarions to view generation (ToListOrNotToListTwo) we detected a variable that was ever only assigned the result of GetViewsForExtentAndType(). We removed the assignment but we did not remove the call since we did not know if GetViewsForExtentAndType is a pure method. If we can confirm that the method doesn't have necessary side-effects we should remove the call as well.
This is in general an area that is very performance sensitive and something like this can help a lot.
This is in general an area that is very performance sensitive and something like this can help a lot.