 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Nov 19, 2007 2:50 pm
Another Speed Question |
What is wrong with this?
| Code: |
c Achaea |[1] Achaea Comline : start : todo Thing;todo Thing;todo Thing;todo Thing
l Achaea | Alias "todo" compiled (Normal) : #if (!(%ismember(%-1,@TodoList))) {#additem TodoList %-1}...
k Achaea | [1] Var "TodoList" changed from "" to "Thing"
k Achaea | [1] Var "TodoList" changed from "Thing" to ""
a Achaea |Thing
k Achaea | [1] Var "TimeTodo" changed from "1" to "0"
l Achaea | Trigger "todoalarm" compiled (Pattern) : +1
d Achaea |[1] Achaea Comline : stopped
a Achaea |[+1-> TimeTodo=1;donow]
f Achaea |Alarm: +1
l Achaea |Trigger "todoalarm" compiled (Normal) : TimeTodo=1;donow
c Achaea |[2] Achaea Trigger : start : Alarm "todoalarm" : TimeTodo=1;donow
k Achaea | [2] Var "TimeTodo" changed from "0" to "1"
k Achaea | [2] Var "TodoList" changed from "" to "Thing"
k Achaea | [2] Var "TodoList" changed from "Thing" to ""
a Achaea |Thing
k Achaea | [2] Var "TimeTodo" changed from "1" to "0"
l Achaea | Trigger "todoalarm" compiled (Pattern) : +1
d Achaea |[2] Achaea Trigger : stopped
a Achaea |[+1-> TimeTodo=1;donow]
f Achaea |Alarm: +1
l Achaea |Trigger "todoalarm" compiled (Normal) : TimeTodo=1;donow
c Achaea |[2] Achaea Trigger : start : Alarm "todoalarm" : TimeTodo=1;donow
k Achaea | [2] Var "TimeTodo" changed from "0" to "1"
d Achaea |[2] Achaea Trigger : stopped
|
Is it just two slow to not catch that Thing is already a member of the TodoList until the 3rd todo? Why is it adding Thing twice? |
|
|
|
 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Nov 19, 2007 3:44 pm |
Well I don't understand this. Why is it adding duplicates? Is this more multithreading stuff?
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 19, 2007 5:55 pm |
As mentioned in another thread, there is a problem with the debugger properly showing changes made to string list and database variables.
Also, whenever you are mentioning any sort of "speed" issue, be sure to enable the Delta Timestamps in the debugger and copy those along with the rest of the log. Otherwise we can't see how long each line takes. |
|
|
|
 |
|
|
|