With Bullseye RPi.GPIO is used. With Bookworm it uses rpi-lgpio and lgpio.
lgpio no longer uses interrupts for inputs. This means some cpu seconds for every input.
The official gpiod still uses interrupts. This means zero cpu when monitoring inputs.
Is there a chance to change the underline library?
By the way pigpiod is also polling the imputs ...