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

11 commits

Author SHA1 Message Date
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
Evan Phoenix
a1c457f331 Cleanup warnings 2012-08-10 10:12:33 -07:00
Thibault Jouan
4efbc7071a Allow compilation with -Werror=format-security option 2012-07-10 22:47:49 +00:00
Dirkjan Bussink
0728ce5ba9 Define RSTRING_NOT_MODIFIED for Rubinius
As far as I could tell, the buffer given to the http parser isn't
modified. Because it is not modified, we can use the
RSTRING_NOT_MODIFIED header to ensure that Rubinius hasn't do the extra
work to copy the data back and forth.
2012-06-13 09:27:09 +02:00
Charles Oliver Nutter
cae0e02715 Minimal change to get puma_http11 extension loading on JRuby. 2012-01-15 18:04:01 -06:00
Luis Lavena
474ba70647 Build extensions
And place the resulting extension in 'puma' namespace
2012-01-08 16:32:32 -03:00
Sokolov Yura
684b15db3d ALLOC_N uses xmalloc, so that, use xfree for free 2012-01-06 14:47:10 +04:00
Charles Oliver Nutter
0e316b2c20 Fix use of "unsafeBytes" leading to offset errors and regen parser. 2011-11-22 16:23:34 -06:00
Evan Phoenix
dcffc1b765 Some fixes to the java parser 2011-11-22 13:17:22 -08:00
Charles Oliver Nutter
d692475955 First pass updating JRuby bits for Puma.
* Rename Mongrel to Puma and move files appropriately
* Add HttParser11#body method
* Fix native.rake to not attempt C ext under JRuby
* Mask out all of test_unix_socket.rb under JRuby
2011-11-22 13:43:54 -06:00
Evan Phoenix
40dac162a2 Change name of parser extension to puma_http11 2011-10-04 20:35:50 -07:00