When you block a user, you can't know if you have dp_in_cl.. especially if
user is away/brb.. any state != online/offline...
KKRT
On Wed, 01 Feb 2006 10:10:30 -0500, Youness Alaoui
<[EMAIL PROTECTED]> wrote:
Yes, TopUpdate's design is as stupid as saying "just in case someone
changed his nickname, or status, let's call a timer and call
cmsn_draw_online every 100ms...
but I think the proc in itself uses too much time, I mean, I did the
profiling, enabled it, refreshed the CL, stoped it.. I though it took
less than 5 seconds, so TopUpdate got called only once, or at max,
twice... and I had only one window opened.. and yet, that proc uses in
totalRuntime (or was it avgRuntime) more than ShowUser... which means it
does something which isn't right (unless the 'wm title' is the command
that uses too much time since it needs to communicate with the WM..)
I think we only need to go through that code and see what it looks for,
and call it when receiving those events.. I think it's on user joins,
user leaves, user changes nick.. humm.. is that it ?
KaKaRoTo
On Wed, 01 Feb 2006 08:24:13 -0500, Arieh Schneier
<[EMAIL PROTECTED]> wrote:
It could be because that function is called every couple of seconds, not
only when required, for every chat- to get the latter we need to get
events
for all cases that could change the top frame...
Lio.
----- Original Message From: "Youness Alaoui" -----
ohh.. and TopUpdate is huge it seems!
KKRT
On Tue, 31 Jan 2006 21:25:13 -0500, Youness Alaoui
<[EMAIL PROTECTED]> wrote:
Thanks... I tried it, interesting, too bad we don't get a graphic view,
it would have been better to analyze.. anyways, it seems a lot of time
is spent in the ::config::GetKey and ::skin::getKey and trans and
::plugins::calledFrom and ::plugins::namespaceExists procs.. they are
the most calls proc, so that's why!!
But it's really stupid actually to be doing profiling.. you know why ?
because profilers give us how many time we spent in each proc, to
determine which part is the slowest.. only thing is that it's funny..
because eveything is done in one proc! so we can't know :S
anyways, seems like 50% of the time is spent in ShowUser... the rest is
in cmsn_draw_online_wrapped.. but no way to find out which part is the
slowest unless we make it modular..
KKRT
On Tue, 31 Jan 2006 04:20:56 -0500, Arieh Schneier
<[EMAIL PROTECTED]> wrote:
all I know is that some profiling should be done (is it even
possible with tk?:S)
Tcl has a profiling library "profiler" (Its in Tcllib). [package
require
profiler]
You can also get some info on how to profile here:
http://wiki.tcl.tk/1106
Lio.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel
--
KaKaRoTo
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel