in reply to improving the speed
You really should post a complete program which demonstrates exactly that :) How do I post a question effectively?