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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:15:48+00:00 2026-06-15T21:15:48+00:00

Now that modern machines are all multi-core and we have support for SIMD instructions

  • 0

Now that modern machines are all multi-core and we have support for SIMD instructions on Windows and Linux boxes with SSE instructions, for example, should I switch to merge sort in my C/C++ code and forget QuickSort? Theoretically, the reason for doing this is that merge sort will parallelize better and use memory/disk more sparingly and thus be faster than QuickSort’s memory intensive operation, but I don’t know. What does practical experience indicate?

I do not want to profile and test every time I sort something. I want to use one standard approach. Currently that approach is QuickSort, because that is the default library sorting routine. I want to know if there are others out there who have switched to MergeSort and experienced better results by making that switchover.

UPDATE————

Graham.Reeds answer to How big is the performance gap between std::sort and std::stable_sort in practice? indicates that anecdotally my guess above is right and switching to MergeSort/stablesort may be correct.

  • 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-06-15T21:15:49+00:00Added an answer on June 15, 2026 at 9:15 pm

    After getting a lot of non-answers, I spent a few hours and did my own research. The result of this is that, yes, merge sort (and other related sorts) are going to be significantly faster due to less intensive use of memory, and better parallelization/multicore exploitation. Moreover, there is a a standard, high-performance library by Intel called IPP that implements merge-type sorts for x86 machines. By switching to this library it looks like I can get greatly improved sorting performance (and other vector type operations) for the types of programming I do.

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

Sidebar

Related Questions

Now that most modern browsers support AJAX and client-side requests without performing a POST,
Now that I have decided upon Firebird , with the help of StackOverflow :),
Now that I have a read-only application working, I am working on the insert
Now that C++ development has become second nature to me, do I have to
Am curious why modern browsers allow switching off Javascript. It's so clear now that
I am a new Windows 8 developer, I have some code that was designed
I have a Windows app that I've written in C# 4 and WPF; I've
In Linux or other modern OS, each process's memory is protected, so that a
Now that the canvas tag is starting to get hardware execration [acceleration - thanks
Now that Google App Engine natively supports Django 1.0, I updated with the following

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.