summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-26 03:01:25 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-26 03:01:25 +0000
commitb438af302757aa4f68c452567542fe50a81a5809 (patch)
treec16bb6ded7f4e31772c28a50e29a1728e3b113a8
parentd311aa71073905381a5f641754805bfbd816bd6e (diff)
Optimize the way we lookup incoming translations.
Undo last commit (accidentally committed benchmarking code)
-rw-r--r--core/libraries/L10n_Scanner.php7
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) {