Browse files

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.
  • Loading branch information...
1 parent fc0aebd commit 0728ce5ba97ec33761d61bdf65d9ad7719f49557 @dbussink dbussink committed Jun 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/puma_http11/puma_http11.c
@@ -2,6 +2,9 @@
* Copyright (c) 2005 Zed A. Shaw
* You can redistribute it and/or modify it under the same terms as Ruby.
#include "ruby.h"
#include "ext_help.h"
#include <assert.h>

0 comments on commit 0728ce5

Please sign in to comment.