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

  • Home
  • SEARCH
  • 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 6033151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:26:31+00:00 2026-05-23T05:26:31+00:00

I need to sort huge binary files that won’t fit into memory. It’s no

  • 0

I need to sort huge binary files that won’t fit into memory. It’s no option to use a sort algorithm and continuously read/write from I/O device. Is there any possibility to use something like a memory mapped file?

  • 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-23T05:26:32+00:00Added an answer on May 23, 2026 at 5:26 am

    This is a solved problem, as explained on this wiki page: http://en.wikipedia.org/wiki/External_sorting

    Basically, read in some set amount, sort it, save into a file, and repeat.
    Then, read in a smaller amount from each file, sort these, and continue until done.

    UPDATE:

    You may want to look at the java code he uses, it sounds like he solved what you need.

    http://www.codeodor.com/index.cfm/2007/5/10/Sorting-really-BIG-files/1194

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

Sidebar

Related Questions

I have a huge number (2k+) of xml files that I need to extract
I need to sort many files and then dump into many files in order
I have several (27) huge (several GB each) bz2 archive files that I need
I have a huge array of ints that I need to sort. The catch
I have some huge log files I need to sort. All entries have a
I need some sort of node-graph editor, that hopefully works on both Mac and
I need to sort an array that can look like this: $array[4][0] = array('id'
I have an array of filenames and need to sort that array by the
I need to sort a huge number of photos, and remove the blurry images
I need to sort tuples according to the second element of each tuple but

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.