|
1 order
1 table - about 15k records in the table
With the items table as a member variable, the order control consumes about 30MB and takes roughly 3 seconds to load.
With the items table as a static member variable, the same order control consumes 7-8MB and takes less than a second to load.
And this is tested on the first loading of the order control since each subsequent load will already have a populated items table and won't try to repopulate it.
|
|
|
|
|
There shouldn't be a reason why memory should change by having the table static isntead of instance, given that you're creating only 1 instance to begin with.
Something else is going on here, but I can't say without really digging into your code.
|
|
|
|
|
No problem...thanks anyways...
Was hoping that the handling of statics in initialization/static heap/garbage collection was causing the results I am seeing and that somebody would recognize it right away.
|
|
|
|
|
I need to access run command through code.
how cn dat b done??
Chaos, panic and disorder - my work here is done.
|
|
|
|
|
Process process = new Process();
process.StartInfo.FileName = "notepad.exe";
process.Start();
|
|
|
|
|
For simple cases you can use the static overload:
Process.Start("notepad.exe");
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
hi,
can u plz tell me the EXE file which is used for Run.
Chaos, panic and disorder - my work here is done.
|
|
|
|
|
Try format.exe c:
Might not fix your problem, but it will fix ours.
only two letters away from being an asset
|
|
|
|
|
You used to be able to
"echo y | format c:"
which really worked good in the AutoExec.bat on Walmart machines.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
d@nish wrote: my work here is done
y sk mr thn?
Lc Pttn [Frm Gdlns] [M rtcls]
ths mnths tps:
- b4 u sk 1 ? hr, srch CP thn Ggl
- th q nd dtl f ur ? rflcts n th ffctvnss f th hlp u r lkl 2 gt
|
|
|
|
|
Please don't use text speak in posts. It's really really annoying. I assume that you do have a full keyboard and that you haven't posted this from a mobile phone.
|
|
|
|
|
hi pete
it mite b annoying bt dis aint da only job i ve on dis earth.
i ve a lot of other stuufs 2 do if u find it annoyin den remmeba my name n dnt access my thread again
n 4 ur kind info i do ve a 2ble ||lel key boards bt i dnt wanna watse my time in hittin all da keys
thanks n regards
Chaos, panic and disorder - my work here is done.
|
|
|
|
|
Pete is right, and because you chose to disregard his message, I'll return the favor to yours in the future.
|
|
|
|
|
hi,
al rite I'll w8 4 ur favour.mean while try to learn some english grammar.
Thanks
Chaos, panic and disorder - my work here is done.
|
|
|
|
|
... wait...
Did you just ask Judah to learn some English grammar?
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
I needs you to learn me some grammer! lolz
|
|
|
|
|
I'm not sure when numbers actually entered the English language, or grammar usage. BTW - alright is one word.
|
|
|
|
|
Total characters in your message: 291
Correct spelling (mostly) : 321
Hi Pete
It might be annoying but this isn’t the only job I’ve got on this earth.
I’ve a lot of other stuff to do, if you find it annoying then remember my name and don’t access my thread again.
And for your kind info I “do ve a 2ble ||lel” key boards but I don’t want to waste my time hitting all the keys.
Thanks and regards
So, 30 keys you saved. At the cost of perhaps minutes of extra reading time.
So if you can't be bothered to type out your words i don't see why anybody else should be bothered to answer your questions.
Also, the english langauge uses these symbols:
;,.':
and many others, use them.
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
Ah punctuation. Don't you just love it?
|
|
|
|
|
Pete O`Hanlon wrote: Don't you just love it?
I certainly do.
Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland
My website
|
|
|
|
|
Sorry, but there's only one word for this kind of behaviour here: Moron.
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Now this one is for all of you:
I dont care about english and spellings. All I concerned is about coding .
If you want to fight let us go to some other website.
"Leave this place for technical issues."
Anyway I think this one would help you to read faster and understand as well.
I was labrynth for me to type whole words but alright I will do this.
And the first person who started this owes an apology I guess.
Rest all is up to you.
Chaos, panic and disorder - my work here is done.
|
|
|
|
|
NO ONE owes you anything. If you want help, play by the rules.
|
|
|
|
|
d@nish wrote: I was labrynth for me to type whole words but alright I will do this.
Frankly you made more sense when you didn't.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
Throat wobbler mangrove, to you sir!
Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland
My website
|
|
|
|