Re: Python and STL efficiency

2006-08-23 Thread Amanjit Gill
> Hi, I'm learning STL and I wrote some simple code to compare the > efficiency of python and STL. Hi, you are benching heap allocations and of course heap fragmentation. this is what devpartner c++ profiler had to say: Method %in % with Called Average Real Name Method Children

Re: Python and STL efficiency

2006-08-23 Thread Amanjit Gill
> I was using VC++.net and IDLE, respectively. I had expected C++ to be > way faster. However, while the python code gave the result almost - This code runs amortized 100ms on my machien (vc.net 2003 pro, dinkumware stl, p4m 2.2GHz thinkpad, windows 2003 server), (10 loops in 1000ms) - with STLPo