Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:28:11+00:00 2026-05-31T07:28:11+00:00

Which of list, array or seq are more efficient for parallel processing and can

  • 0

Which of list, array or seq are more efficient for parallel processing and can easily implement parallel operations such as parmap, parfilter, etc?

EDIT:
Thanks for the suggestions. Array.Parallel looks like a good option. Also checked out PSeq.fs and I have got a question about how the pmap below work.

let pmap f xs =
   seq { for x in xs -> async { return f xs } }
   |> Async.Parallel
   |> Async.RunSynchronously

Does a new thread get spawned for each element in the sequence? If so, is there a way of breaking the seq into chunks and creating a new task for each chunk to get evaluated in parallel?

I would also like to see if there is any similar pmap implementation for list. I found Tomas has a ParallelList implementation in his blog post here. But I am not sure whether converting a list to array to perform parallel evaluation does not incur too much overhead and if it can be avoided?

EDIT:
Thanks for all your inputs. Tomas answered my original question.

Answering my own question in the first edit:

I tried breaking a big list into chunks then apply async to each sublist.

let pmapchunk f xs =
    let chunks = chunk chunksize xs
    seq { for chunk in chunks -> async { return (Seq.map f) chunk } }
    |> Async.Parallel
    |> Async.RunSynchronously
    |> Seq.concat

The results: map: 15s, pmap: 7s, pmapchunk: 10s.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:28:12+00:00Added an answer on May 31, 2026 at 7:28 am

    There is a parallel implementation of some array operations in the F# library. In general, working with arrays is probably going to be most efficient if the individual operations take a long time.

    • Take a look at the Array.Parallel module. It contains functions for creating array (init), for performing calculations with elements (map) and also choose function that can be used to implement filtering.

    If you’re writing a complex pipeline of operations that are fairly simple, but there is a large number of them, you’ll need to use PLINQ, which parallelizes the entire pipe-line as opposed to parallelizing just individual operations (like map).

    • Take a look at the PSeq module from F# PowerPack for an F# friendly wrapper – it defines pseq<'T> type and the usual functions for working with them. This blog post also contains some useful information.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can we search string in another string/list/array in django which is passed through python
I have an array which is a list of domains, I want to print
I have an array that contains a list of vertices which I copy to
I have generic list which must be a preserved order so I can retrieve
I have a huge array list which contains 1000 entries out of which one
how to compare value in an array? I have array named list which contains
I have a Array list which contains Objects of Restaurants ArrayList<Restaurants> array_sort = new
I have a array list which have a list of a type, but all
hi am storing the results in array list which are obtained by querying different
Hi I have an array list which has some numbers in it like {23,16,45,26,2,5,9}

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.