Massive Computation: C++ vs C#
Ok. Remember what I said about the project I am doing?
- It is so much computations, that real time is out of the question.
- I am going to use .NET.
- I need to get it done fast.
What would you recommend?
If real-time is out of the question then go ahead and use C#, if that's what you wan't to use and gets the job done better and quicker. If you wan't best of both worlds just create a DLL with all your math computations in C++ and link to it from C#.
IIRC C# is somewhat slower at floating point. It was, anyway; that may have changed.
But if you're not working in real time, I don't know how much it matters, and if you're writing managed code anyway, you may as well go for C#.
Although the DLL idea is not a bad one...I'm not sure how much comparative overhead the dynamic linking will cause.
But if you're not working in real time, I don't know how much it matters, and if you're writing managed code anyway, you may as well go for C#.
Although the DLL idea is not a bad one...I'm not sure how much comparative overhead the dynamic linking will cause.
Quote:Original post by Sagar_Indurkhya
Ok. Remember what I said about the project I am doing?
Nope. And I hate it when people assume I do. You should provide a link next time.
Quote:Original post by Sagar_Indurkhya
Remember what I said about the project I am doing?
Who are you?
Quote:Original post by MaulingMonkeyQuote:Original post by Sagar_Indurkhya
Ok. Remember what I said about the project I am doing?
Nope. And I hate it when people assume I do. You should provide a link next time.
Sorry, I meant for the people who posted last time to post again. Umhhh, it is just a project that does huge calculations. It isn't in real time. It records variables into a log, and can play them back like a movie.
You won't be able to run it in a data center if you use .NET..
But unless you need truly massive calculations then that shouldn't be an issue, so use whatever language gets the job done faster.
But unless you need truly massive calculations then that shouldn't be an issue, so use whatever language gets the job done faster.
What is a data center? I meant for it to run on my home cpu. It records a log file, so that I can stop and start it at any time.
Quote:Original post by Sagar_IndurkhyaI meant a super computer.
What is a data center? I meant for it to run on my home cpu. It records a log file, so that I can stop and start it at any time.
Your local university might be able to donate/lease you some cpu time for research projects.
But it'll probably take weeks to setup so unless the simulation would take months to complete on a home computer it's not really an option.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement