Hi, I have a question regarding the NoNotificationChemobjectBuilder using CDK 1.3.5.:
The following source code is executed very often:
IChemObjectBuilder builder = NoNotificationChemObjectBuilder.getInstance();
IAtomContainer partContainer =
builder.newInstance(IAtomContainer.class);
partContainer.addAtom(atom);
When I profile my project I saw that the method
org.openscience.cdk.AtomContainer.addAtom(IAtom) calls
org.openscience.cdk.ChemObject.addListener(IChemObjectListener). In this
method "contains" (java.util.ArrayList.contains(Object)) is called which
needs so much time. (Screenshot attached) Is it possible to avoid
calling this method? I thought the NoNotificationChemobjectBuilder does
not fire events?
Or did I do something wrong in my source?
Thanks!
Yours,
Sebastian
--
Sebastian Wolf
Group Bioinformatics & Mass Spectrometry
Leibniz Institute of Plant Biochemistry
Weinberg 3
06120 Halle (Saale), Germany
email: [email protected]
phone: +49-(0)345-5582-1471
<<attachment: profiling.png>>
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

