time to teach me a little about garbage collection. Certainly I'm not doing allocating.

Actually, I thought I streamlined it considerably. Before, it was fully checking visibility issues each time; now it is just anding a flag. It isn't even running any of the flag-setting routines until the Viewer is tainted by an actual script change. Here's what I would do: I would see if the slowness is affected by particular renderings -- spacefill, dots, etc.

Do you know if

for (i=n; --i >= 0;)
  if (bs.get(i)) {
....
  }
}

is significantly different in terms of efficiency from:

for (i=bs.cardinality(); --i >= 0) {
  int i = bs.nextSetBit()

}

? I did replace some of the former with the latter because it seemed me just going through the actually set bits would probably be faster.
That's something I changed.



Can you give me enough information to let me test it as well and see if I notice the same?


Bob

Miguel wrote:

Bob,

I am noticing some pausing/hesitation when rotating with the mouse ...

I suspect that the garbage collector is kicking in. I have put in a lot of
work to ensure that does not happen ...


Q: In the work that you have done, are you allocating any objects during
mouse rotations?


Miguel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to