Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rubinius performance tweak suggested by Brian

  • Loading branch information...
commit 0a6ead782e2d66d94b26baaca3fd253563995738 1 parent 019906a
Peter Ohler authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.