Execution becoming slow

There isn't any good alternative library that I am aware of. But you can easily create a polling encoder code by taking advantage of the thread below:

Note that polling drivers will have much lower speed and resolution capabilities. You might improve on this by using direct port manupilation instead of traditional digitalRead commands. But do note that this is a dangerous method for beginners.