I was profiling a script I wrote, and the method with the greatest
amount of time used was Kernel.=== . I was surprised, not only since I
didn't use this method in my code, but my code had nothing involving
modules. When I changed a case statement that was inside my loop to an
if and many elsifs, I saved about 2 seconds on profiling, and the call
was gone. Is there a reason such a slow call is used in case statements?
Posted via http://www.ruby-forum.com/.