Comment 0 for bug 2073306

Revision history for this message
bombela (bombela) wrote :

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.