Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: 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?
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Mon Nov 19, 2007 3:44 pm   
 
Well I don't understand this. Why is it adding duplicates? Is this more multithreading stuff?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net