Re: pinned byte arrays

2006-10-20 Thread Simon Marlow
Bulat Ziganshin wrote: Hello glasgow-haskell-users, i have program that holds in memory a lot of strings (filenames) and use my own packed-string library to represent these string. this library uses newByteArray# to allocate strings. in my benchmark run (with 300.000 filenames in memory) program

Re: pinned byte arrays

2006-10-19 Thread Duncan Coutts
0s) > 16 collections in generation 1 ( 12.20s) > > 65 Mb total memory in use > > most of this memory occupied by filenames. note that 28 mb of memory > is used just for GC procedure (i use compacting GC) > > then, i thought that using pinned byte arrays s

pinned byte arrays

2006-10-19 Thread Bulat Ziganshin
(i use compacting GC) then, i thought that using pinned byte arrays should significantly improve memory usage because these arrays can't be moved around and therefore, i thought, these arrays will not be involved in GC. amount of data which should be compacted by GC will decrease and amou