Using mutable array after an unsafeFreezeArray, and GC details

2014-05-09 Thread Brandon Simmons
A couple of updates: Edward Yang responded here, confirming the sort of track I was thinking on: http://blog.ezyang.com/2014/05/ghc-and-mutable-arrays-a-dirty-little-secret/ And I can report that: 1) cloning a frozen array doesn't provide the benefits of creating a new array and freezing

Re: Using mutable array after an unsafeFreezeArray, and GC details

2014-05-09 Thread Edward Z . Yang
Hello Brandon, Excerpts from Brandon Simmons's message of 2014-05-08 16:18:48 -0700: I have an unusual application with some unusual performance problems and I'm trying to understand how I might use unsafeFreezeArray to help me, as well as understand in detail what's going on with boxed

Re: Using mutable array after an unsafeFreezeArray, and GC details

2014-05-09 Thread Brandon Simmons
On May 9, 2014 5:13 PM, Edward Z. Yang ezy...@mit.edu wrote: Hello Brandon, Excerpts from Brandon Simmons's message of 2014-05-08 16:18:48 -0700: I have an unusual application with some unusual performance problems and I'm trying to understand how I might use unsafeFreezeArray to help

Re: Using mutable array after an unsafeFreezeArray, and GC details

2014-05-09 Thread Carter Schonwald
Any chance you could try to use storable or unboxed vectors? On Friday, May 9, 2014, Brandon Simmons brandon.m.simm...@gmail.com wrote: On May 9, 2014 5:13 PM, Edward Z. Yang ezy...@mit.edujavascript:_e(%7B%7D,'cvml','ezy...@mit.edu'); wrote: Hello Brandon, Excerpts from Brandon

Re: Using mutable array after an unsafeFreezeArray, and GC details

2014-05-09 Thread Edward Z . Yang
Excerpts from Carter Schonwald's message of 2014-05-09 16:49:07 -0700: Any chance you could try to use storable or unboxed vectors? Neither of those will work if, at the end of the day, you need to store pointers to heap objects Edward ___

Re: Using mutable array after an unsafeFreezeArray, and GC details

2014-05-09 Thread Carter Schonwald
true enough On Fri, May 9, 2014 at 7:55 PM, Edward Z. Yang ezy...@mit.edu wrote: Excerpts from Carter Schonwald's message of 2014-05-09 16:49:07 -0700: Any chance you could try to use storable or unboxed vectors? Neither of those will work if, at the end of the day, you need to store