Skip to main content

How to make your .NET app run mega fast !

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [.NET Compact Framework Development] >> .NET Compact Framework - VB.NET >> How to make your .NET app run mega fast ! Page: [1]
Login
Message << Older Topic   Newer Topic >>
How to make your .NET app run mega fast ! - 2/3/2003 11:16:26 PM   
mastersdom

 

Posts: 192
Score: 0
Joined: 4/26/2002
From: UK
Status: offline
There' s a great new way to make your .NET application run many, many times faster. Forget XScale. Forget all that playing around with the CF generated code ! Just follow the steps below.

1. Take your .NET code.
2. Buy a good book on C.
3. Uninstall your .NET CF and bin the installation disks.
4. Install embedded Visual C.
5. Let of a bit of steam. Have a beer. Curse your luck for ever believing in such half backed, snail paced interpreted whatever.
6. REWRITE in C.

Am I serious ? Yep !
Are you serious ? Well if you' re serious about writing normal speed applications (not fast just ones that load up before your battery runs out) then .NET CF is NOT the answer.

It' s time to forget the hype, the promises of what will come in the future and get REAL.
The luddite returns....

Dom
Post #: 1
RE: How to make your .NET app run mega fast ! - 2/4/2003 1:56:57 PM   
PocketPC Addict

 

Posts: 49
Score: 0
Joined: 4/26/2002
From: NC
Status: offline
Dom,

Your cf app will run fine as long as you don' t use any fancy stuff like:

* for/next statements
* Classes
* modules
* pictureboxes
* Listboxes
* scrollbars
* variables
* any arrays whatsoever
* Menuitems
* Textboxes
* or the worst culprit - SQL!

Labels are ok, unless they are placed over a panel, in which case, they aren' t recommended either.

Hope this advice helps
Brad

_____________________________

Pocket PC Addicts Unite! Visit www.pocketpcaddict.com

(in reply to mastersdom)
Post #: 2
RE: How to make your .NET app run mega fast ! - 2/4/2003 3:01:47 PM   
mastersdom

 

Posts: 192
Score: 0
Joined: 4/26/2002
From: UK
Status: offline
Ha ha LOL. Try doing Hello World in a label control on a form. I can write " Hello World" faster :0) We have a phrase here in liverpool. We call it getting " shafted" :0) That' s how I feel having spent 6 months using OO CF .NET whatever. I mean come on .NET was to be only a bit slower (half as fast ?) as eVC.

Apparently the next version of .NET CF is designed for XScale which means it will run even more slowly LOL :0)))

Ha ha ha ha ha (laughing hysterically and uncontrollably after the results of the .NET " Experiment" :0)

Dom

(in reply to mastersdom)
Post #: 3
RE: How to make your .NET app run mega fast ! - 2/4/2003 3:35:06 PM   
PocketPC Addict

 

Posts: 49
Score: 0
Joined: 4/26/2002
From: NC
Status: offline
quote:

Apparently the next version of .NET CF is designed for XScale which means it will run even more slowly LOL :0)))

Ha ha ha ha ha (laughing hysterically and uncontrollably after the results of the .NET " Experiment" :0)


Dom,

If you don' t have anything nice to say about .NET CF, then you' d be like the rest of us.

hehe...going on 48 hours of SQL H3LL!

Brad

< Message edited by PocketPC Addict -- 2/4/2003 3:37:41 PM >

(in reply to mastersdom)
Post #: 4
RE: How to make your .NET app run mega fast ! - 2/4/2003 4:01:32 PM   
mastersdom

 

Posts: 192
Score: 0
Joined: 4/26/2002
From: UK
Status: offline
Actualy there are LOADS of things that I ADORE ! But performance issues dampen my enthusiasm for ANY of them. Programming is all about the END RESULT that the end user experiences. Some programmers love beautiful code, others like fast development times. You can do both in .NET but it becomes utterly pointless if the end result is ssslllooowww. Therefore as a programmer of sorts I would recommend the slow development times of eVC as ultimately the end result is better ... and that is all that matters when all is said and done :)
Dom

(in reply to mastersdom)
Post #: 5
RE: How to make your .NET app run mega fast ! - 2/5/2003 5:23:31 PM   
laner

 

Posts: 17
Score: 0
Joined: 4/26/2002
From: Oregon
Status: offline
I' ve gotten speed comaprable to or better then eVB out of .Net CF. But I' m trying to recode the eVB stuff I have and I really need mutltiple forms, instead of dinking around with panels. There is way to much goofy crap going on with forms to make them usable. The SQL stuff doesn' t seem that slow to me, again at least not any worse then eVB.

I really think MS needs to get their act together for this to work in enterprise type applications. It may be cool if you can be connected all of the time, but you can' t. Our route system covers most areas west of the Missisippi river. I gave a list of zipcodes that we service to t-mobile and they only coverabout 40% of our accounts. I talked to a couple of other vendors and they didn' t think they would be much higher.

Ackk

Maybe it' s really time to learn C++ I' ve been coding in C for more years then I care to admit.

(in reply to mastersdom)
Post #: 6
RE: How to make your .NET app run mega fast ! - 2/5/2003 7:20:46 PM   
devbuzz


Posts: 457
Score: 0
Joined: 4/26/2002
From: New Jersey, USA & Cape Town, SA
Status: offline
Woohoo - I love this post!!!!

Performance is a BIG issue. I agree - we have bled and bled at DEVBUZZ trying to coax the best out of .NET CF.

Things I love:

1) OO is really the way to go for ease of maintanance and future enhancements to your code
2) reusable DLLs rock - haven' t written a SQL statement in months.
3) reflection is also way cool - opens the way to lots of cool stuff - like the validation code for objects
4) Debugging is pretty solid - no issues
5) .NET provider for SQL CE is solid - we have no issues at all with synching etc
6) fewer memory leaks in forms
7) DLLs that work in ASP.NET and .NET CF (although) make sure you write it .NET CF then move it over to ASP.NET - lowest common denominator

Things that suck:
1) initial form contruction speed is unacceptable
2) XScale speed
3) COM interop and p/invoke is not very user friendly for the uninitiated

Overall I think that .NET CF is not the panacea many folk wished for, but it provides a real leap forward IMHO.

Regards

_____________________________

Derek Mitchell
http://www.devbuzz.com
Windows Mobile Developer
--------------------------------------
* Share the .NET love when you solve *
* issues by posting your solutions!! *
--------------------------------------

(in reply to mastersdom)
Post #: 7
RE: How to make your .NET app run mega fast ! - 2/5/2003 7:50:52 PM   
limbt

 

Posts: 3
Score: 0
Joined: 2/4/2003
Status: offline
does the Compact Framework supports COM interop and platform invocation services ?

I read the documentation and it states that it doesnt the above.

BT

(in reply to mastersdom)
Post #: 8
RE: How to make your .NET app run mega fast ! - 2/5/2003 11:39:22 PM   
devbuzz


Posts: 457
Score: 0
Joined: 4/26/2002
From: New Jersey, USA & Cape Town, SA
Status: offline
Sorry that was a bit misleading I meant COM interoperating and p/invoke. You definitely can invoke functions in unmanaged code from the managed code environemnt (.NET CF).

_____________________________

Derek Mitchell
http://www.devbuzz.com
Windows Mobile Developer
--------------------------------------
* Share the .NET love when you solve *
* issues by posting your solutions!! *
--------------------------------------

(in reply to mastersdom)
Post #: 9
RE: How to make your .NET app run mega fast ! - 2/6/2003 3:32:26 PM   
PocketPC Addict

 

Posts: 49
Score: 0
Joined: 4/26/2002
From: NC
Status: offline
quote:

But I' m trying to recode the eVB stuff I have and I really need mutltiple forms, instead of dinking around with panels.


Well, I took Dom' s advice and started recoding a form dependent program BACK into panels because it was simply TOO sluggish. The speed difference is unbelievable.
Original project 5 forms, now it' s 7 panels on one form, but well worth it...

(in reply to laner)
Post #: 10
RE: How to make your .NET app run mega fast ! - 2/6/2003 7:39:54 PM   
mastersdom

 

Posts: 192
Score: 0
Joined: 4/26/2002
From: UK
Status: offline
My mistress(.net) and I have patched things up :0) Thanks to paramaterized sql commands things are moving 35% faster. Shows what flowers and a few chocolates can do ;0) What I will say however is that having tried the Sony P800 Intel had better get their act in gear regarding their patchwork chips. The P800 phone is gorgeous and fast and it' s not the usual bug riddled / certificate disabling rubbish (no offence Orange, well maybe some) ;0))).

Dom

PS Derek you are ABSOLUTELY right.... as ever !

(in reply to mastersdom)
Post #: 11
Page:   [1]
All Forums >> [.NET Compact Framework Development] >> .NET Compact Framework - VB.NET >> How to make your .NET app run mega fast ! Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.5.5 Unicode

0.016