diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 03:01:25 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 03:01:25 +0000 |
commit | b438af302757aa4f68c452567542fe50a81a5809 (patch) | |
tree | c16bb6ded7f4e31772c28a50e29a1728e3b113a8 | |
parent | d311aa71073905381a5f641754805bfbd816bd6e (diff) |
Optimize the way we lookup incoming translations.
Undo last commit (accidentally committed benchmarking code)
-rw-r--r-- | core/libraries/L10n_Scanner.php | 7 |
1 files changed, 2 insertions, 5 deletions
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) { |