Recently motivated out of curiosity, I and a coworker were benchmarking different approaches to determining if a hash is empty in Perl. Expanding on this a little I present these curious results. In summary, it seems that there are roughly two code paths we’re hitting here. One for if (scalar %hash) and if (%hash), and [...]
-
Feed
-
Older Posts
- August 2012 (1)
- May 2012 (1)
- March 2012 (1)
- January 2012 (1)
- September 2011 (2)
- May 2011 (2)
- April 2011 (1)
- March 2011 (1)
- February 2011 (1)
- January 2011 (2)
- July 2010 (1)
- May 2010 (1)
- April 2010 (1)
- February 2010 (1)
- January 2010 (1)
- August 2009 (1)
- June 2009 (1)
- March 2009 (1)
- January 2009 (1)
- December 2008 (1)
- November 2008 (3)
- October 2008 (3)
- September 2008 (4)
- August 2008 (1)
- July 2008 (6)
- May 2008 (8)
- April 2008 (2)
- March 2008 (3)
- February 2008 (9)
- January 2008 (6)
- December 2007 (1)
- November 2007 (3)
- October 2007 (4)
- March 2007 (2)
- January 2000 (1)
-
Categories