As Jess became faster during the 5.0 development cycle, the event
broadcasting came to consume a larger and larger fraction of
execution time, until it reached 10-20%, at which point I commented
most of these calls out. The only broadcast calls that
are currently uncommented are those that Jess uses itself internally
(RESET and CLEAR events.) Broadcasting an event at each assert or
retract was particularly piggish.

My intention is (at some point before 5.0 goes final) to add an "event
mask" capability, so that you can turn on and off non-essential
events. The GUI development environment would presumably be willing to
suffer the small performance hit of turning all events on, while the
normal runtime configuration would be to have most of them turned
off. I've started this already; you might notice that the event-type
enums in 5.0a5 are longs, and powers of two, now, so that I can do
bit-masking. 

In tandem with this, I intend to allow listeners to register for only
specific events, rather than generically for all events, as it's done
now. This will also speed things up.

I think Lakshmi Vempati wrote:
> 
> Hello,
> 
> I am working on a UI for Jess (similar to the UI for Clips V6 with
> additional
> capabilities). I was
> able to successfully start using my code with Jess5.0a5 with minimum
> changes.
> There is only
> one minor thing that affects the full functioning of my UI. I no longer
> receive
> notifications for
> all JessEvents. I noticed that most of the calls to broadcastEvent have
> been
> commented out
> in the lastest edition of Jess. Was this intentional? Leaving those
> calls would
> enable me to use
> any Jess version (hopefully)  as is.
> 
> thanks,
> Lakshmi Vempati
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to