2011/10/28 Gilles Louppe <[email protected]>: >> >> loaded 19 0:03:55.910640 > > In contrast, in this case, forests can no longer be garbage-collected > and new memory need to be allocated at each iteration, the private heap > need to be extended and so on. In the process, I suspect that objects > are moved to one place to another, which may be the reason why it > slows down (since the number of objects in memory keeps increasing, it > takes longer and longer to move them). > > Well this is just an hypothesis. Maybe I am wrong.
Still, almost 4 minutes just to extend the python heap and reallocate a bunch of already allocated objects seems unlikely. Also I don't understand why the Python interpreter would need to "move" allocated object: it can just grow the heap, reallocate a larger buffer list (if needed, with just 20 items this is not likely), and add a reference to the new item in the list buffer. -- Olivier http://twitter.com/ogrisel - http://github.com/ogrisel ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
