Some apps may launch extremely slowly on Macs, taking more than 30 seconds or even several minutes due to the computation of SHA-256 hashes for the contents of each item in the app's Frameworks folder.
Long launch times are likely caused by computing hashes for protected code in the Frameworks folder, especially when those hashes have been flushed from their cache.
Disable System Integrity Protection (SIP) and setting security mode to Permissive on Apple silicon Macs can help prevent long launch times in most cases.
Even after passing the initial Gatekeeper check, macOS continues to recheck code that is no longer quarantined if Launch Services has no record of it or if the app has been moved.