Avoid gratuitous list flattening
Mochiweb and gen_tcp are perfectly happy with iolists.
diff --git a/src/couch_mrview_http.erl b/src/couch_mrview_http.erl
index ccc8dc1..d0da69e 100644
--- a/src/couch_mrview_http.erl
+++ b/src/couch_mrview_http.erl
@@ -343,8 +343,7 @@
undefined -> [];
UpdateSeq -> [io_lib:format("\"update_seq\":~p", [UpdateSeq])]
end ++ ["\"rows\":["],
- Prepend = prepend_val(Acc),
- Chunk = lists:flatten(Prepend ++ "{" ++ string:join(Parts, ",") ++ "\r\n"),
+ Chunk = [prepend_val(Acc), "{", string:join(Parts, ","), "\r\n"],
{ok, Resp1} = chttpd:send_delayed_chunk(Resp, Chunk),
{ok, Acc#vacc{resp=Resp1, prepend=""}};
view_cb({row, Row}, Acc) ->