Ok, I know I tend to rave a bit about how fast ColdFusion 8 is - but I was a bit shocked today. Last night I had an idea and I somehow forced myself to not jump out of bed and code. Instead I worked on it when I woke up this morning. I'm not going to talk a lot about the idea yet - but it involved parsing a whole heck of a lot of RSS feeds. How many? 292. I pointed Paragator at it and let it rip. How long did it take for ColdFusion to parse all 292 RSS feeds? Around 47 seconds. Not bad. I'll be sharing the code for my little project shortly.
Archived Comments
Nerd.
Just kidding. Well, sort of. You did make a Cloud City joke at 7:15 am.
In my experience, it's not the speed of CF that's the issue with reading feeds, but how fast they respond via http.
True, but you got to love how cfthread can help mitigate that.
It helps in a huge way. But even then, you have limited threads. If you have 10 threads available you could essentially cut the time by a factor of ten.
@Doug - is there a limited number of threads (created by the <cfthread> tag) that will be available in CF8?
@Chris - Yea. This is configurable via the admin and I think the default is 10. The more you add, the more you'll impact the server's performance. I mean to say, that more threads = more work so it will take resources from the rest of your server.
As a side note to this - I'm planning a blog entry on how to throttle cfthread. So if you know your box has a max of 10 threads and you want your process to use 4, how would you do that? Right now my plan is to do it in a loop, which means you need to do some managing of stuff.
p.s. Doug, hit me up on IM when you get a chance, I don't think I have your IM handle here.
CF8 standard has even more limited number of threads I believe. I think it is like 2 or 4 and I don't believe it is able to be changed in the admin.
Still nice to have though, and the nice thing is that your code will just run even faster if you move up to Enterprise.
p.s. The project I hinted at is almost done. I hope to launch it in a day or so. It's live now but you would have to guess the URL. ;) I want to add a bit more polish before I officially release it.
Are you challenging us to guess the url? Oh goody! I like games! ;o)
Also, I think my client is going to splurge for Enterprise, so I'm relived at that! Woo-Hoo! Can't wait! :o)
try google, it keeps picking up our dev sites :P
Bah! I can't find it! :o) I guess I'll have to wait like a good little coder and see what you've cooked up when you're ready to show the world.