neuschaefer / wpcm450

Nuvoton WPCM450 tools and documentation
26 stars 4 forks source link

Optimize gpioget #20

Closed neuschaefer closed 1 year ago

neuschaefer commented 1 year ago

gpioget from libgpiod.git seems to do a lot of unnecessary work, so it takes a quarter second.

# time gpioget /dev/gpiochip4 15
1
real    0m 0.27s
user    0m 0.01s
sys     0m 0.26s
neuschaefer commented 1 year ago

The slowness was caused by some debug options in the kernel. With a defconfig loaded, it's reasonably fast again.