I doubt it, but hopefully someone cleverer than me will suggest something.

By on 3/18/2009 9:27 AM ()

I changed it to use Seq, and it is much faster. I went from about 40-50% to 80-90% utilization on my quad core.

Also, I tried inputing a temp vector in the parent scope. but, that didn't improve things. I think the problem was more to do with vector than the alloc. But, I'm not sure. This code improved things. But, not as much as I expected.

1
2
3
4
let pass1 (v:vector) x = Vector.inplace_mapi (fun _ -> Seq.hd x) v

v

Is Seq is the ideal container for ``forrested'' maps? In what cases should I convert to LazyList?

By on 3/18/2009 9:44 AM ()

Try it and measure.

By on 3/18/2009 10:05 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper