james-proxy / james

Web Debugging Proxy Application
1.42k stars 126 forks source link

Performance: don't send entire request list over IPC #391

Closed mitchhentges closed 5 years ago

mitchhentges commented 5 years ago

Right now, every time there's a proxy "update", we send the entire list of data over to the renderer process. Unfortunately, this means that once you hit a couple hundred requests, the time to send the list of requests dwarfs the time between JS ticks, so you get a laggy, unresponsive James. The solution is to send "deltas" - new requests, and modifying a request with its associated response when it arrives