I have this application in implemented in Objective-C and I need to ported to
C/C++. 

In Objective-C loading the file takes approximately 320MB( file size ~70MB,
278K molecules ).

Problem I'm having is when I try to load the same file this time storing my
molecules in OBMol, the memory just sky rockets to over 2GB.

Anyone see anything wrong with this code:
http://pastebin.com/HHy149fZ


I know in OBMol there is more overhead, but I wouldn't think it would this
much of a difference.
Data structure in objective-c:
Edge        
        int edgeID;
        int edgeWeight;
        int nodeIndex;
        Node* node;          //Node reference

Node       
        int nodeID;
        NSString* nodeLabel;
        
        int type;
        BOOL marked;

        NSMutableArray* AdjEdges;


Thanks,

Andi

--
View this message in context: 
http://forums.openbabel.org/Memory-Usage-tp3405621p3405621.html
Sent from the General discussion mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to