On Jul 7, 2008, at 1:47 PM, Ashley Moran wrote:


On Jul 04, 2008, at 9:45 pm, David Chelimsky wrote:

I'm looking for ways to optimize rspec and came upon something interesting. If I remove handling for auto-generated descriptions (the thing that allows you to say "specify { 5.should == 5 }" with no description string) we get an average 35% performance increase per expectation. 35%. That's huge.

So - how bad do you think this would suck to remove that feature? Are you using it yourself?

I was aware of it but never felt the need to use it

Thanks to everyone for the feedback.

I've come up w/ a good compromise solution which is to only generate the description when it's actually used. Just required moving the call to generate the description to a different place.

Cheers,
David
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to