https://www.matrixtsl.com/mmforums/viewtopic.php?t=8425
I did some googling and found this. Does it help?
I did some googling and found this. Does it help?

I do not immediately see the connection between the potential of the outputs and its impact on your time problem.Good morning mister @marconi ,
Here is something interesting... Im not sure how much may have been influenced my program testing so far, I will have to make a more extensive research on this particular detail, but in time. For the momment, with the programs I run already, I didnt really observed much of a difference to be honest. But it crossed my mind that this little bugger might be important in some special cases, special programs. Time will tell.
So here it is - full view:
View attachment 100791
The blue lines represent the Ground or 0V. I marked with a square the 0V marking next to the metalic pad from which the wire is going beneath the cardboard to that long track on which, each negative pin for all the LEDs are connected. So what I have there is a pull down connection through each 12k resistor put in series to each LED to ground.
View attachment 100792
This problem I realize it yesterday, when I was programming and was meditating to the fact those pins from the IC are not really floating or inAir. I then realized they are actually pulled to ground through each led. And today, I mounted that little switch only between this rail for all the leds and 0V. I tested a couple of normal programs but no visible difference. Ill have to test some in depth programs that I have 'somewhere' that really needs some floating pins. I really hope it will be a difference this time. If not, then, daaaaeeem.
First off all, congratulation on the movie and showing the full working project. Very fascinating !!!I do not immediately see the connection between the potential of the outputs and its impact on your time problem.
Thank you. I see what you mean. The same applies to the eeprom I used but in its case it did not do anything with the data at its input/output pins until they were selected as such and there was a 'read' signal pulse. I suppose the same applies to the MCP23017. I have not had the time nor inclination to fully understand how the 23017 operates and is used to offer any immediate advice. I remain sceptical though.First off all, congratulation on the movie and showing the full working project. Very fascinating !!!
I still have to try it your way someday, in the future.
-to your question now: - Well, when a pin of the IC is floating , it is not 0V nor 5V. Right? But by having all those leds and resistors to 0V, I efectively put to 0V every IO pin of the chip. THus, not leaving anything really floating. This is important in code, when I am switching from Outputs to Inputs. By switching to Inputs is the programming way of 'floating' the Output. By inversing it. Its a trick learned when I was programming PIC's MCU's. But... having all these pins to 0V ---anyway--- , it doesnt matter if I was switching to Input or to Output in code, because the state was 0V anyway. So the speed was not affected but the entire logic of the code was affected, which is more important and more drastic. I hope is more clear now what I did there.
Dont worry about that. That is my concern.I have not had the time nor inclination to fully understand how the 23017 operates