Diamond Contract Gas Efficiency Challenge

The DiamondLoupeFacet.sol implementation in the Compose smart contract library is too gas inefficient. I challenge anyone to write the most gas efficient, sensible code, to implement this.

See this issue for details: