glPixelTransfer() = slow

I’ve been playing around with the glPixelTransfer() function to change the contrast of diffrent colors and I’ve noticed that it slows down everything pretty much. Is there a way to avoid that?