I noticed today and yesterday that running my site on local host is very slow. I highly doubt this is a code issue as when I put it up on my live site it went fast.
Not sure if this might be it but I had a similar problem a while ago when I was making json requests with ajax. It took nearly 500 ms seconds, after the fix it took only 10-20 ms.
http://www.swarmonline.com/2011/01/slow-asp-net-development-server-windows-7/
This did the trick.
I have had a similar issue a few years back.
The problem was that DNS was failing to lookup something and it retried several times before timing out (15 second delay per try IIRC).
Try check for that with Wireshark.