indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.47k stars 239 forks source link

Initial module import performance issue #620

Closed houqp closed 2 years ago

houqp commented 2 years ago

For an application that we packaged, I noticed that the initial start time is really long, usually 10-20 seconds. But subsequent runs are a lot faster (1-2 seconds). Any tips on how to troubleshoot this?

houqp commented 2 years ago

we traced down the issue to codesign, insane amount of fcntl syscalls over dynamic libs on the first run :(