[rspec-users] auto-generated descriptions

David Chelimsky dchelimsky at gmail.com
Mon Jul 7 15:03:41 EDT 2008

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.


More information about the rspec-users mailing list