Skip to content
Browse files

rubinius performance tweak suggested by Brian

  • Loading branch information...
1 parent 019906a commit 0a6ead782e2d66d94b26baaca3fd253563995738 Peter Ohler committed Mar 15, 2012
Showing with 7 additions and 5 deletions.
  1. +2 −0 ext/oj/cache.h
  2. +0 −1 ext/oj/cache8.c
  3. +2 −0 ext/oj/cache8.h
  4. +0 −1 ext/oj/fast.c
  5. +0 −1 ext/oj/load.c
  6. +0 −1 ext/oj/oj.c
  7. +2 −0 ext/oj/oj.h
  8. +1 −1 lib/oj/version.rb
View
2 ext/oj/cache.h
@@ -31,6 +31,8 @@
#ifndef __OJ_CACHE_H__
#define __OJ_CACHE_H__
+#define RSTRING_NOT_MODIFIED
+
#include "ruby.h"
typedef struct _Cache *Cache;
View
1 ext/oj/cache8.c
@@ -34,7 +34,6 @@
#include <string.h>
#include <stdarg.h>
-#include "ruby.h"
#include "cache8.h"
#define BITS 4
View
2 ext/oj/cache8.h
@@ -31,6 +31,8 @@
#ifndef __OJ_CACHE8_H__
#define __OJ_CACHE8_H__
+#define RSTRING_NOT_MODIFIED
+
#include "ruby.h"
typedef struct _Cache8 *Cache8;
View
1 ext/oj/fast.c
@@ -34,7 +34,6 @@
#include <math.h>
#include <errno.h>
-#include "ruby.h"
#include "oj.h"
#define MAX_STACK 100
View
1 ext/oj/load.c
@@ -33,7 +33,6 @@
#include <string.h>
#include <math.h>
-#include "ruby.h"
#include "oj.h"
enum {
View
1 ext/oj/oj.c
@@ -34,7 +34,6 @@
#include <stdio.h>
#include <string.h>
-#include "ruby.h"
#include "oj.h"
typedef struct _YesNoOpt {
View
2 ext/oj/oj.h
@@ -38,6 +38,8 @@ extern "C" {
#endif
#endif
+#define RSTRING_NOT_MODIFIED
+
#include "ruby.h"
#ifdef HAVE_RUBY_ENCODING_H
// HAVE_RUBY_ENCODING_H defined for Ruby 1.9
View
2 lib/oj/version.rb
@@ -1,5 +1,5 @@
module Oj
# Current version of the module.
- VERSION = '1.0.1'
+ VERSION = '1.0.2'
end

0 comments on commit 0a6ead7

Please sign in to comment.
Something went wrong with that request. Please try again.