On Wed, Mar 25, 2009 at 5:12 PM, Markus Hartenfeller <[email protected]> wrote: > Does anyone know how to switch off firing of ChemObjectChangeEvent? > Can anybody tell me what it is good for and whether it is necessary?
It was need for JChemPaint... > I do not explicitly use these events in my code. Do some CDK core > classes need them? Core classes do not need them. You can see that by looking at the dependency graph [0]... everything that depends on the interfaces module instead of the data module, does *not* need the event model. In many cases you do not need this event model, e.g. in descriptor calculation where the structures do not change at all. > Profiling my project made me see that a lot of resource is spend on that > class and I am not sure whether all these events really need to be > listened to. Use the nonotify implementation of the interfaces instead, e.g. via the NoNotificationChemObjectBuilder. Egon 0.http://pele.farmbio.uu.se/nightly-1.2.x/cdkdep.png -- Post-doc @ Uppsala University http://chem-bla-ics.blogspot.com/ ------------------------------------------------------------------------------ _______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

