You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
I use Turbine version 1.1.0beta1.
My computer: Inter Core2 Duo T5470 (2x1,6 GHz), 2Gb, under Vista Home Basic (32bit), Apache 2.0 Handler, PHP 5.2.6
My cssp file contains 24581 bytes. Turbine process it about 12 sec! I found that it coused by function Parser2->tokenize.
I rewrite it with explode function and time reduced to 2 sec!
Also I changed array_key_exists to isset in function Cssp->find_ancestor_keys:
array_key_exists('_label', $this->parsed[$block][$key]) to isset($this->parsed[$block][$key]['_label'])
Hear my code of Parser2->tokenize. Maybe it will be used.
Hi.
I use Turbine version 1.1.0beta1.
My computer: Inter Core2 Duo T5470 (2x1,6 GHz), 2Gb, under Vista Home Basic (32bit), Apache 2.0 Handler, PHP 5.2.6
My cssp file contains 24581 bytes. Turbine process it about 12 sec! I found that it coused by function Parser2->tokenize.
I rewrite it with explode function and time reduced to 2 sec!
Also I changed array_key_exists to isset in function Cssp->find_ancestor_keys:
array_key_exists('_label', $this->parsed[$block][$key]) to isset($this->parsed[$block][$key]['_label'])
Hear my code of Parser2->tokenize. Maybe it will be used.
public function tokenize($str, $separator = array(' ', ' ')){
static $tr = array(
"'" => '"'',
'"' => '"@@@@@',
'(' => '"(',
')' => '")',
"\t"=> ' '
);
}
The text was updated successfully, but these errors were encountered: