sethd.org
this is not the blog you're looking for

Resume
LinkedIn

RECENT ENTRIES

Interesting Modules 2010-09-03
36th Birthday
Book Blogging: Startide Rising
Android Tethering and Linux
Interesting Modules 2010-08-21
Moose Presentations
Time Spent In Sequoia
Good Perl Video Presentations
Time Spent In Yosemite
Yosemite and Sequoia National Parks 2010
Interesting Modules 2010-08-03
Several Months With A Smart Phone
Interesting Modules 2010-07-30
Recent Interesting Talks
Book Blogging: Bloodbrothers
Book Blogging: Fires of Freedom
Duck Duck Go
Yes, Yes, Yes
About That Lack of Blogging
Using A Smart Phone
Taking the Smart Phone Plunge (Maybe)
Book Blogging: Nemesis
Perl Not Going Away
OpenX Is Hiring Perl Developers
Perl Jobs vs Perl Programmers
Free Chapter From Effective Perl Programming
Perl On Android Progressing
Book Blogging: The Mote In God's Eye
Perldoc Is Important
The Second Age of Perl
A Description of Perl 5.12
Interesting Modules 2010-04-18
The Moral of This Story
Perl 5.12 Has Been Released
Packaging and Maintaining An Alternate Perl
Perl Moving Up?
Building Dependencies Like Make
Introduction To Plack
Defining Standard Testing Methodologies
Subversion Vision Released
Interesting Modules 2010-04-01
Perl Is Thriving
Interesting Modules 2010-03-29
Assign to $0
Feb 23, 2010

Excellent Post About Exceptions

Apparently using exceptions as flow control can be very bad. That blog post has some concrete numbers on the performance hit of die()/eval() versus return() and versus eval{return()}.

I've often wondered about this but had never followed up by performing some simple tests. The absolute worst case of this I have ever seen was when I was benchmarking the protobuf-perl library. At that time Moose was capturing a confess() by Class::MOP. It was doing this thousands of times for even simple tasks. As you can see if you read this thread getting rid of the confess() was a big win (although protobuf-perl was still slow). I wonder if getting rid of the eval would have proven to be even more beneficial? As I wrote about here I will likely never know.

Tags: , .
[p] Posted @ 13:18 by Seth


This site uses the very simple and easy to use blosxom blogging software.


Advanced Search

OTHER SITES