Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 19th, 2006, 8:49 PM   #1
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
C# App Memory

I am just starting a C# application, and I haven’t add anything at all yet, and when I run just the basic form you start with, it's already taking around 8 MB of ram to run... why so much when the form has nothing on it? Does that sound right to you guys?
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Jun 19th, 2006, 9:13 PM   #2
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 422
Rep Power: 4 Wizard1988 is on a distinguished road
Thats the cost of using the .NET platform. By using .NET you trade in some of the speed/resources for other things like faster development time.
Wizard1988 is offline   Reply With Quote
Old Jun 19th, 2006, 9:19 PM   #3
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
Very true. I could code the same thing using win32... but it would also take 20 times longer haha.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Jun 19th, 2006, 9:32 PM   #4
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
stick with the c++ man! C# does come in handy for small applications. Take my word for it... me and a friend developed a small application that got very large rather quick. Well we are now upgrading most of the computers in our department to run it properly. Its a 1.25 mb exe with 6 DLL's averaging at about 50-80k. Its crap! Should have been completely written in C++! We would have months of conversion problems if we wanted to attempt it. Anyway... C++!
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Jun 19th, 2006, 10:22 PM   #5
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
I have done a lot of C++ Win32 apps in my day, and I don't have time for that right now. This app isn't going to get very big anyways, and the time I will save outweighs the loss in performance. I am good at optimizing code if I find something is running too slow anyways.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old Jun 19th, 2006, 10:42 PM   #6
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 5 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Quote:
Originally Posted by Kilo
stick with the c++ man! C# does come in handy for small applications. Take my word for it... me and a friend developed a small application that got very large rather quick. Well we are now upgrading most of the computers in our department to run it properly. Its a 1.25 mb exe with 6 DLL's averaging at about 50-80k. Its crap! Should have been completely written in C++! We would have months of conversion problems if we wanted to attempt it. Anyway... C++!
That's a tradeoff you have to deal with, I'm afraid. It happens all the time, and it's just something you have to put up with. In many instances, the time you spend developing can far outweigh things like a somewhat large executable. C# is just an option, you don't have to use it if you don't want to; even then, you have to ask yourself if it's worth using something else or not.
__________________
os: mac os 10.5.4
revision control: git
editor: emacs

site
Mad_guy is offline   Reply With Quote
Old Jun 19th, 2006, 10:59 PM   #7
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
It all depends on what you are programming. If you rely on the app’s performance then C++ is the way to go; if you are just trying to make something that looks awesome and performance is not #1 priority then C# may be the better option.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC