Skip to content
Browse files

Skipping JSON#encode of labels == 30% speed boost in Representative::…

…Json!
  • Loading branch information...
1 parent 72e2cb9 commit be0ae40a83d41e88b520ebdea085224440804c7d @mdub committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/representative/json.rb
View
2 lib/representative/json.rb
@@ -109,7 +109,7 @@ def indentation
def label(name)
return false if @indent_level == 0
new_item
- emit(encode(format_name(name)) + ": ")
+ emit(format_name(name).inspect + ": ")
end
def new_item

0 comments on commit be0ae40

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