Ticket #602 (new Task)

Opened 1 week ago

Last modified 5 days ago

Small Speedup in Kohana setup()

Reported by: allain Assigned to: Shadowhand
Priority: minor Milestone:
Component: Core Version: SVN HEAD
Keywords: kohaha, setup, speed Cc:
SVN Revision (if applicable):

Description

Since the $hooks array is constructed in such a way that all of its members are guarenteed to be unique line 175 can be changed from

include_once $hook;

to

include $hook;

Saving us some file system locks

Change History

05/11/08 04:29:43 changed by Geert

  • type changed from Bug to Task.

I guess the same optimization can be applied to http://trac.kohanaphp.com/browser/trunk/system/core/utf8.php

Currently it uses require_once to load specific utf8 function files, however, the $called property already keeps track of what files have been loaded in order not to reload.