Have you actually tested the performance in the game?
For me, the mod uses less than 0.02 ms when outside of a chest gui and ~0.1 ms when inside a chest. This is basically nothing.
The reason I don't use on_gui_opened is because I want the chest to be sorted even when the player is inside the gui, just like how the player's inventory works.