From b438af302757aa4f68c452567542fe50a81a5809 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 26 Mar 2009 03:01:25 +0000 Subject: Optimize the way we lookup incoming translations. Undo last commit (accidentally committed benchmarking code) --- core/libraries/L10n_Scanner.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/libraries/L10n_Scanner.php b/core/libraries/L10n_Scanner.php index df43ba9e..9c1138cd 100644 --- a/core/libraries/L10n_Scanner.php +++ b/core/libraries/L10n_Scanner.php @@ -46,13 +46,11 @@ class L10n_Scanner_Core { foreach (Database::instance() ->select("key") ->from("incoming_translations") - ->where(array("locale" => "root")) - ->get() - ->as_array() as $row) { + ->where("locale", "root") + ->get() as $row) { $this->_index_keys[$row->key] = true; } - Kohana::log("debug", microtime()); // Index all files $dir = new L10n_Scanner_File_Filter_Iterator( new RecursiveIteratorIterator( @@ -65,7 +63,6 @@ class L10n_Scanner_Core { $this->_scan_info_file($file, $this); } } - Kohana::log("debug", microtime()); } function process_message($message) { -- cgit v1.2.3