Permalink
Browse files

Preallocate some symbols and make the whole thing slightly faster

  • Loading branch information...
1 parent 520b035 commit 5c41f2f95e3c2bdf4d7e9b0cc5a145dade374b6d @olabini committed Jul 25, 2009
Showing with 196 additions and 145 deletions.
  1. +2 −0 ext/ruby/src/java/YechtService.java
  2. +194 −145 ext/ruby/src/java/org/yecht/ruby/YechtYAML.java
@@ -89,6 +89,8 @@ public boolean basicLoad(final Ruby runtime) throws IOException {
cEmitter.defineAnnotatedMethods(YechtYAML.YEmitter.class);
cEmitter.addReadWriteAttribute(ctx, "level");
+ oGenericResolver.dataWrapStruct(new YechtYAML.GenericResolver.Extra(runtime));
+
return true;
}
}
Oops, something went wrong.

0 comments on commit 5c41f2f

Please sign in to comment.