{"id":263,"date":"2013-04-10T20:00:00","date_gmt":"2013-04-10T20:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2013\/04\/10\/loglog4perl-and-supposed-performance-penalties\/"},"modified":"2013-04-10T20:00:00","modified_gmt":"2013-04-10T20:00:00","slug":"loglog4perl-and-supposed-performance-penalties","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2013\/04\/10\/loglog4perl-and-supposed-performance-penalties\/","title":{"rendered":"Log::Log4perl and (supposed) performance penalties"},"content":{"rendered":"<p>\t\t\t\t<a href=\"https:\/\/metacpan.org\/module\/Log::Log4perl#Penalties\">Log::Log4perl &#8211; Log4j implementation for Perl &#8211; metacpan.org<\/a><\/p>\n<p>Evaluating parameters to logger methods may be expensive, but that&#8217;s outside the scope and responsibility of Log::Log4perl. So if you know that you have &#8220;expensive parameters&#8221;, you may &#8220;guard&#8221; your logger calls with &#8220;<i>&#8230;-&gt;is_&#8230;()<\/i>&#8221; method calls. Otherwise just don&#8217;t do so! It does not make sense. Read up the above manual page section! Why should the <i>is_trace<\/i> call be cheaper than the <i>trace<\/i> call itself? Of course it&#8217;s not. I guess, you got that.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Log::Log4perl &#8211; Log4j implementation for Perl &#8211; metacpan.org Evaluating parameters to logger methods may be expensive, but that&#8217;s outside the scope and responsibility of Log::Log4perl. So if you know that you have &#8220;expensive parameters&#8221;, you may &#8220;guard&#8221; your logger calls with &#8220;&#8230;-&gt;is_&#8230;()&#8221; method calls. Otherwise just don&#8217;t do so! It does not make sense. Read [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-4f","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}