1
Vote

Parse-DumpHeap should use an ArrayList after all - unusably slow otherwise

description

I'm using PowerDbg to debug a huge and complicated memory leak, and dumpheap takes an eternity (didn't finish in several minutes) to parse an array of 35000 objects from raw windbg output.
 
When I re-introduced usage of ArrayList in the code, things finished rather quickly (perhaps a minute) and I didn't see anything work wrong, despite the comment in code that usage ArrayList drops NoteProperty's.
 
Also, I found this post, which may be of help: http://powershell.com/cs/forums/p/5507/8890.aspx

comments