Static condensation for hybrid discontinuous Galerkin methods

Thanks a lot for the reply.
In fact I notice it would be difficult to do it on the element level.
And later on I found this link:

which could be helpful for doing it globally.
I will check it.
Best regards.