Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

RE: DisplayImpl Simplified: addReferences

Thank you!!!  That's the magical incantation I was looking for.  Putting
disableAction() and enableAction() around all my addReferences() runs just
as fast as my previous kludge, and feels much better.  That's a good way to
finish the week.

> -----Original Message-----
> From: From: Bill Hibbard <hibbard@xxxxxxxxxxxxxxxxx>
> [mailto:billh@xxxxxxxxxxxxx]
> Sent: Friday, January 25, 2002 3:21 PM
> 
> The big performance gain you see in removing the use
> of mapslock in addReferences() might also be acheivable
> by enclosing the sequence of operations on your
> DisplayImpl between calls to display.disableAction()
> and display.enableAction(). Probably your first
> addReferences() triggers a call to doAction(), which
> locks out later addReferences() calls. The disableAction()
> will prevent the doAction() call until the enableAction().

Randall W. Simons
Sandia National Laboratories


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: