i am using following phpmailer function to send 1000+ mails
Drop the function into c++ via cgi. A c++ mailer would be far more robust than hitting the entire http framework first. http://www.cplusplus.com/forum/windows/86562/ But PhP already uses hash table for it's associative array, so you won't pick up anymore speed with a hash table. So you really are sort of maxed out in your web framework. Drop it to a system level function and c is your fastest/leanest choice. Unless you are really talented with assembly language.