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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:20:20+00:00 2026-05-24T23:20:20+00:00

I have a project which I created in Eclipse c++. The project invokes a

  • 0

I have a project which I created in Eclipse c++. The project invokes a function that does a lot of loops (Thousands) to calculate the result.

When I run it in Eclipse it takes 1 minute (~70 seconds).

I wanted to add a GUI to the project so I opened a WinForm (Win32) project in VisualStudio2010 and moved all files of the project from the eclipse directory to the new directory (created for VS2010).

Now, when I run the form, the function takes 4-5 minutes. I tried to cancel the progress bar but it wasn’t the problem, so I understood that long time is not because of the GUI.

I think the problem is in the compilation in VS2010. I tried to change some Optimizations properties, but the project couldn’t be compiled…

How can I reduce the run time?

Thanks!

  • 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-24T23:20:22+00:00Added an answer on May 24, 2026 at 11:20 pm

    Basically you answered your own question:

    I think the problem is in the compilation in VS2010. I tried to change
    some Optimizations properties, but the project couldn’t be compiled…

    however, it’s hard to answer it, since there is a lot of optimization options in both of compilers, it’s hard to tell what option makes it much faster/slower. It’s also possible (and most probably is) that MS compiler just cant produce exactly the same or similar code to that of Eclipse’s compiler.

    Your options is to “play” with optimization switches of the VS compiler and see if it helps. You can try to compare it’s options to ones of the Eclipse to find differences, but most likely they will be just too different.

    As @Zuljin correctly mentioned also check you selected Win32 project, not CLR (Windows Forms) application. If you are using CLR project, then it’s natural it will possibly run slower than Native program type.

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

Sidebar

Related Questions

I have created an eclipse plugin project and a corresponding fragment project which I
I have a remote project in Eclipse which was created through RSE's 'Create Remote
I have installed minGW and msys. In eclipse CDT I created c++ project that
I noticed that I had a project named RemoteSystemTempFiles which I never have created.
I have created a a subclass of Table in my ASP.NET project which creates.
i have created a simple public ref class in the vc++ project, which is
I have created data sources from my objects in my project, some of which
I have a project which contains different components that everyone works on. We have
I have a problem setting up my maven j2me project that I created in
I have created a plugin project in eclipse to create a new category and

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.