I took a look on the net and ran across this website: http://www.suffecool.net/poker/evaluator.html He is using massive look-up tables to shortcut the ranking. The code is pretty easy so I converted it over to purebasic and gave it a shot. It takes about 5 seconds to rank 1 million 7 card hands. Not too shabby.
I've uploaded the converted code for everyone here: http://www.slightlystunned.com/purebasic/pokertest2.pb
My next step is to set it up so it can judge the relative strength of a hand at the various betting points in texas hold'em and then maybe make a little toy AI for me to play against.


