better performance with ajax

I'm making very simple ajax requests like

   type: "POST",  
   url: "",  
   data: dataString,  
   success: function() {  
    //display message back to user here  

and then this php sends it to the database, but this process is taking too long! what can i do to speed it up?

I have some $_SESSION variables inside the php could that be slowing it down?


You can profile your php code to find out if the bottle neck is in the code. Simplest way to profile a PHP script

Are you sure it's in PHP?? I'd assume it is from latency.

Need Your Help

Heterogeneous Lists, Virtual Functions, and Member Data

c++ inheritance virtual heterogeneous

I'm having some trouble figuring out how to assign values to member data when calling a virtual function through a heterogeneous list.