Skip to content

Commit

Permalink
define RSTRING_NOT_MODIFIED for rbx, and an insane perf boost
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Mar 23, 2011
1 parent 193779d commit c131c7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/rugged/rugged.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
#ifndef __H_RUGGED_BINDINGS__
#define __H_RUGGED_BINDINGS__

// tell rbx not to use it's caching compat layer
// by doing this we're making a promize to RBX that
// we'll never modify the pointers we get back from RSTRING_PTR
#define RSTRING_NOT_MODIFIED

#include <ruby.h>

#include <assert.h>
Expand Down

0 comments on commit c131c7e

Please sign in to comment.