How to make your .NET app run mega fast ! (Full Version)

All Forums >> [.NET Compact Framework Development] >> .NET Compact Framework - VB.NET



Message


mastersdom -> How to make your .NET app run mega fast ! (2/3/2003 11:16:26 PM)

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




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

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. [:D]

Hope this advice helps [;)]
Brad




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

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




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

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




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

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




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

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.




devbuzz -> RE: How to make your .NET app run mega fast ! (2/5/2003 7:20:46 PM)

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




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

does the Compact Framework supports COM interop and platform invocation services ?

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

BT




devbuzz -> RE: How to make your .NET app run mega fast ! (2/5/2003 11:39:22 PM)

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).




PocketPC Addict -> RE: How to make your .NET app run mega fast ! (2/6/2003 3:32:26 PM)

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...




mastersdom -> RE: How to make your .NET app run mega fast ! (2/6/2003 7:39:54 PM)

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 !




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5.5 Unicode

0.016