When I start bitcoin, it takes a very long time for the main window to appear. About 10-30 minutes. The following is added to ~/.bitcoin/debug.log when bitcoin is started, and nothing more appears until the main window appears:
Bitcoin version 0.4.0-beta
OS version Linux 2.6.38-11-generic x86_64
System default language is 66 en_DK.UTF-8
Language file locale/en_DK/LC_MESSAGES/bitcoin.mo (English (Denmark))
Default data directory /home/rune/.bitcoin
Bound to port 8333
Loading addresses...
dbenv.open strLogDir=/home/rune/.bitcoin/database strErrorFile=/home/rune/.bitcoin/db.log
After the main window appears, the following information is added to debug.log
Loaded 249074 addresses
addresses 627873ms
Loading block index...
LoadBlockIndex(): hashBestChain=000000000000077a9c9a height=147002
block index 436502ms
Loading wallet...
nFileVersion = 40000
fGenerateBitcoins = 0
nTransactionFee = 1000000
fMinimizeToTray = 0
fMinimizeOnClose = 0
fUseProxy = 0
addrProxy = 127.0.0.1:9050
fUseUPnP = 1
wallet 435ms
Rescanning last 106 blocks (from block 146896)...
rescan 5251ms
Done loading
mapBlockIndex.size() = 147005