Well --onefile
can slow things down a little because it needs to unpack itself but not by that much. Try switching temporarily to --onedir
and see if/how much difference it makes. If it’s a big difference then I can think of two possibilities:
--onefile
build every time it unpacks (which is every time it runs).Number 2 seems unlikely for Linux but it’s very common on Windows and macOS.