Skip to content

Commit

Permalink
Define RSTRING_NOT_MODIFIED for Rubinius
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dbussink committed Jun 13, 2012
1 parent fc0aebd commit 0728ce5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/puma_http11/puma_http11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0728ce5

Please sign in to comment.