1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

4 commits

Author SHA1 Message Date
Dirkjan Bussink
ba5264e72b Define RSTRING_NOT_MODIFIED for Rubinius performance
This ensures the header is defined before ruby.h is included.
2013-09-04 20:15:56 +02:00
Evan Phoenix
d04ad557b8 Add missing return value (oh C, you're so crazy for allowing it) 2012-11-29 12:27:13 -08:00
Evan Phoenix
05af17d3f7 Free old buffer properly 2012-09-25 09:00:36 -07:00
Evan Phoenix
ab8dbfeb96 Vastly improve IO perf on 1.9.3
Puma::IOBuffer is a very simple memory buffer that allows for fast
append without additional object overhead.

Additionally, turns out that IO#write on 1.9.3 is extremely
non-performant because it allows a Hash object on every invocation.
Avoid calling IO#write in a loop on 1.9.3! Use IO#syswrite if you can
(for instance when you don't care about the encoding of the output
(sockets)).
2012-08-11 15:09:09 -07:00