Does anyone have suggestions for optimizing a script that reads the blockchain from JSON-RPC? Is it possible to use HTTP/1.1 keepalive to avoid re-stablishing a TCP connection for each query? Does the JSON-RPC service support concurrency?
UPDATE
I am able to telnet to the port in two different terminals at the same time, so it can definitely handle multiple simultaneous connections. I'd still like to know more about how it's implemented internally (threads? events?), and how increasing the number of simultaneous clients would affect total throughput.