trying to improve performance for case when blitz of requests flow out. Assume incoming data from socket to be handled is long - say several K after several of requests were pushed out. Observatory shows huge amounts of work in the lists in handleData, plus it is recursive. The approach taken was: for large list L use from front what is needed and return unused data. The issue is every response requires copy of entire data list unnecessarily.
trying to improve performance for case when blitz of requests flow out. Assume incoming data from socket to be handled is long - say several K after several of requests were pushed out. Observatory shows huge amounts of work in the lists in handleData, plus it is recursive. The approach taken was: for large list L use from front what is needed and return unused data. The issue is every response requires copy of entire data list unnecessarily.

dartist/redis_client,dartist/redis_client