mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
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.
This commit is contained in:
parent
fc0aebd3c7
commit
0728ce5ba9
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
* Copyright (c) 2005 Zed A. Shaw
|
||||
* You can redistribute it and/or modify it under the same terms as Ruby.
|
||||
*/
|
||||
|
||||
#define RSTRING_NOT_MODIFIED 1
|
||||
|
||||
#include "ruby.h"
|
||||
#include "ext_help.h"
|
||||
#include <assert.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue