You could start running into the php max execution limit if it takes that long to run... Also, I'd think of doing a cronjob to pull the data vs loading it in a content island, as the lag it takes to generate the data could hold the forum from loading...
I'd be interested at looking at your code though
