Permalink
Browse files

cache bb in perf test

  • Loading branch information...
shawn42 committed Oct 11, 2012
1 parent 098bba1 commit b492424483ab148df46704fa409602bfa78d9bd9
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/perf_aabb.rb
View
@@ -16,7 +16,7 @@ def initialize(x,y,w,h)
end
def bb
- Rect.new(x,y,w,h)
+ @bb ||= Rect.new(x,y,w,h)
end
end

0 comments on commit b492424

Please sign in to comment.