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 7650239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:12:00+00:00 2026-05-31T11:12:00+00:00

I have a conceptual question. Suppose I have a procedure (any language) which takes

  • 0

I have a conceptual question.

Suppose I have a procedure (any language) which takes a data set as input, process it and write output to an array. This array is used down the stream for further processing. The problem is that code has large run time. So large that it needs to be optimized!

What I am proposing is to partition the input data set into smaller chunks and call the procedure for each of the data set in parallel. Sounds simple!

Hence I thought to write the procedure in a separate file, create a separate executable. Submit this executable for smaller data sets for batch processing.

But the problem with this method is that since each of the batch job is a separate process, how to create the array that I was creating earlier from all of these jobs! I can think of writing each job output to files and then process them to create the array back.

Is there a better way to do things in parallel?

Thanks for your suggestions 🙂

  • 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-31T11:12:02+00:00Added an answer on May 31, 2026 at 11:12 am

    I agree it looks like MapReduce.

    You might like to look at Erlang, which supports very elegant ways of partitioning and distributing work across processes, processors, and machines.

    Joe Armstrong’s Erlang book “Programming Erlang – Software for a Concurrent World” gives a simplistic MapReduce which can be used across processes.

    I found these blogs which talk about Joe’s simple MapReduce:

    http://bc.tech.coop/blog/070520.html

    http://bc.tech.coop/blog/070601.html

    which might explain the idea, and gives Erlang code.

    Erlang is Open Source, so you could do a few experiments for a small investment in time.
    Concurrency and communication are built into the language, and it all works ‘out of the box’ on a single machine. You do need to set up a ‘key’ so that Erlang Virtual Machines can commun icate, but once that’s done, A program can be run across a local area network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

a conceptual question: I have a global system which sales agents use to write
A conceptual question: I have data stored hierarchically via Core Data SQLite for an
Hello This is a conceptual question mostly. I have written a stored procedure in
I have a conceptual question... I am making an Intranet application (Web platform) for
More of a design/conceptual question. At work the decision was made to have our
This is a conceptual question involving Hadoop/HDFS. Lets say you have a file containing
This is more of a conceptual question than anything. I have a base class
I have an interesting situation here this time. This more of a conceptual question,
I have a conceptual question. I am wondering how companies such as Alexa Internet
I have a MultiThreading issue and conceptual question using Visual Basic (but it applies

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.