flatpak package doubles fish shell startup latency

Bug #2073306 reported by bombela
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flatpak (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

bombela (bombela)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.