Public bug reported: On my machine, fish shell takes ~9ms to startup. With the flatpak package installed, it takes ~21ms.
Timing with /bin/time (resolution 10ms): ~> exec sh $ time -f '%es' /bin/fish -c exit 0.00s $ sudo apt-get install flatpak -y >/dev/null $ time -f '%es' /bin/fish -c exit 0.01s $ sudo apt-get purge flatpak -y >/dev/null $ time -f '%es' /bin/fish -c exit 0.00s Time with fish timer (resolution 1µs, includes active fish shell processing time): ~> time /bin/fish -c exit ________________________________________________________ Executed in 9.14 millis fish external usr time 5.23 millis 269.00 micros 4.96 millis sys time 4.25 millis 176.00 micros 4.07 millis ~> sudo apt-get install flatpak -y > /dev/null ~> time /bin/fish -c exit ________________________________________________________ Executed in 21.02 millis fish external usr time 10.53 millis 0.00 micros 10.53 millis sys time 10.88 millis 465.00 micros 10.42 millis ~> sudo apt-get purge flatpak -y > /dev/null ~> time /bin/fish -c exit ________________________________________________________ Executed in 9.66 millis fish external usr time 6.52 millis 0.00 micros 6.52 millis sys time 3.49 millis 482.00 micros 3.00 millis I suppose the flatpak package is installing some system fish configuration, that fish processes by default. I noticed the extra latency when starting my shell. I used the fish profiler to find out it was flatpak. Ubuntu 24.04 LTS, Package: flatpak, Version: 1.14.6-1 ** Affects: flatpak (Ubuntu) Importance: Undecided Status: New ** Description changed: On my machine, fish shell takes ~9ms to startup. With the flatpak package installed, it takes ~21ms. Timing with /bin/time (resolution 10ms): ~> exec sh $ time -f '%es' /bin/fish -c exit 0.00s $ sudo apt-get install flatpak -y >/dev/null $ time -f '%es' /bin/fish -c exit 0.01s $ sudo apt-get purge flatpak -y >/dev/null $ time -f '%es' /bin/fish -c exit 0.00s Time with fish timer (resolution 1µs, includes active fish shell processing time): ~> time /bin/fish -c exit ________________________________________________________ Executed in 9.14 millis fish external - usr time 5.23 millis 269.00 micros 4.96 millis - sys time 4.25 millis 176.00 micros 4.07 millis + usr time 5.23 millis 269.00 micros 4.96 millis + sys time 4.25 millis 176.00 micros 4.07 millis ~> sudo apt-get install flatpak -y > /dev/null ~> time /bin/fish -c exit ________________________________________________________ Executed in 21.02 millis fish external - usr time 10.53 millis 0.00 micros 10.53 millis - sys time 10.88 millis 465.00 micros 10.42 millis - ~> sudo apt-get purge flatpak -y > /dev/null + usr time 10.53 millis 0.00 micros 10.53 millis + sys time 10.88 millis 465.00 micros 10.42 millis + ~> sudo apt-get purge flatpak -y > /dev/null ~> time /bin/fish -c exit ________________________________________________________ Executed in 9.66 millis fish external - usr time 6.52 millis 0.00 micros 6.52 millis - sys time 3.49 millis 482.00 micros 3.00 millis + usr time 6.52 millis 0.00 micros 6.52 millis + sys time 3.49 millis 482.00 micros 3.00 millis I suppose the flatpak package is installing some system fish configuration, that fish processes by default. I noticed the extra latency when starting my shell. I used the fish profiler to find out it was flatpak. + + Ubuntu 24.04 LTS, Package: flatpak, Version: 1.14.6-1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2073306 Title: flatpak package doubles fish shell startup latency To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/flatpak/+bug/2073306/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs