The bug
The model file composter.json is not fully optimized: it uses 18 texture planes, but a visually identical result for all intents and purposes can be achieved via just 14.
How to reproduce
Unlike other model optimization tickets, superflat worlds cannot be used to reproduce this issue due to the fact that composters cull each others' side faces, which is where the majority of the lag comes from (composters have redundant side faces).
How to fix
This should be a very, very easy fix. Just take the composter.json model inside of the attached resource pack and replace the vanilla model file with it, and composters should now have a markedly lower performance impact (and a slightly lower file size as well).
Related issues
relates to
Attachments
Comments

Can confirm in 1.20.3