Closing because: 1. After a bit of profiling, it turns out that, regarding both allocations and execution time, the JSON writing is by far the most expensive operation (almost by an order of magnitude) 2. We mostly parse bulk responses, for which we definitely need parsing (so that we know the status code for each bulked operation) For these reasons, optimizing parsing (making it more efficient) is likely a better approach than trying to avoid parsing: see
HSEARCH-2835 Open |