Finally caught up! The tugboat is a picture I didn’t even remember taking, but in retrospect is pretty cool. This seems to be a trend with me. The ones with least recall, or lowest expectations afterwards seem the best.
Month: June 2011
Project 365 Week 23
Some more vacation pictures plus some randoms. This was a big catch up week for me. I really like the cannon and beach.
Project 365 Week 22
More catch up. This is my week of vacation. Most of these pictures were just lightly touched up. I like this week.
Project 365 Week 21
I’m catching up from my backlog of posts here. This is the delayed Week 21. Not a bad week actually. Start of vacation photos as well.
I’ve always heard the include_once()
and require_once()
functions were computationally expensive in PHP, but I never knew how much. I tested the following out on my i7 2010 MacBook Pro using PHP 5.3.4 as shipped by Apple.
This first test uses include_once()
to keep track of how often a file is included:
Took: 10.020140171051 sec
This second example uses include()
and uses in_array()
to keep track of if I loaded the include:
Took: 0.27652382850647 sec
For both, the include had the following computation:
Lesson learned: Avoid using _once if you can avoid it.
Update: That means something like this will theoretically be faster: