[wp-trac] [WordPress Trac] #25161: Define SCRIPT_DEBUG in trunk/src and remove it when building

WordPress Trac noreply at wordpress.org
Wed Aug 28 15:54:13 UTC 2013


#25161: Define SCRIPT_DEBUG in trunk/src and remove it when building
--------------------------+--------------------
 Reporter:  azaozz        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by nacin):

 Replying to [comment:2 TobiasBg]:
 > Is that file_exists() really that much more expensive than e.g.
 require_once() that we are doing so many times per page load, anyway?

 require/include, when done unconditionally, can be sped up with an opcode
 cache and the sysopen call is avoided. That's not the case for conditional
 includes or any other kind of stat calls like file_exists().

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25161#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list