G'day,

I'm working on an application that uses CDK to parse SMILES strings, do 
2D structure diagram generation and render the resulting structures.

The application works with large sets of structures and I noticed that 
the structures were consuming a large amount of memory.  Upon closer 
inspection I noticed that this is because each atom and bond in a CDK 
structure maintains a list (ChemObjectListeners) of other atom, bonds 
and molecules.

Assuming these listeners are unnecessary for the purposes of rendering 
structures I'd like to empty the ChemObjectListeners lists (or avoid 
them being populated in the first place).

Looking at the (1.2.x) API I can't see a way to clear these lists: I can 
add/remove and count the listeners but I can't get them (in order to 
remove them).

As it is, this prevents the application from handling large collections 
of structures.

Thanks,
Chris. 
 
Syngenta Limited, Registered in England No 2710846
Registered Office : Syngenta Limited, European Regional Centre, Priestley Road, 
Surrey Research Park, Guildford, Surrey, GU2 7YH, United Kingdom 
--------------------------------------------------------

This message may contain confidential information. If you are not the 
designated recipient, please notify the sender immediately, and delete the 
original and any copies. Any use of the message by you is prohibited.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to