[2005] "#Region" Design-Time Performance
I'm in a little bit of a debate with one of the guys I work with about #Region/#End Region and whether it's causing his computer to slow down while he codes in a document. I did some researching and haven't been able to find anything proving or disproving my opinion.
If know of any articles or maybe a kb of a hotfix that took care of this - please let me know.
Thanks.
Re: [2005] "#Region" Design-Time Performance
Ive never heard or seen such an issue. Do you have service pack 1 installed?
Re: [2005] "#Region" Design-Time Performance
I'm trying to figure out what one would have to do with the other. It's strictly a visual/organizational thing. There was an issue with Intellisense acting up in some cases, but the SP should take care of that.
-tg
Re: [2005] "#Region" Design-Time Performance
I would think that since the IDE is like a hybrid treeview that the collapsed regions would help imporve ide performance.
Re: [2005] "#Region" Design-Time Performance
We have the latest and I've been reading through what they fixed to see if there was an issue that has been adressed, but nothing.
The only reason I'm so fed up with this is when he confronted me about it, he announces to the floor that I should "do research before I start spewing about this." I asked him for an article or something that said my regions do cause an issue - but he said it was almost "months ago when the problem existed and didn't have it anymore."
So I'm looking for something, anything to prove or disprove one way or the other.
Re: [2005] "#Region" Design-Time Performance
Hes a fraud and just trying to make himself look more knowledgable then any other programmer. People like that are soon exposed for the incompetant foos that they are. ;)
It could be that he was the cause of some of the bugs back then that got fixed and he doesnt want anyone to know it was because of him :D
I would tell him to present proof of his argument before he starts blaming others. Let him do your research for you.
Re: [2005] "#Region" Design-Time Performance
I tried telling him to furnish proof. Problem is, this place tends to run on the "was once, is always" policy. If he can say that he proved it once, then it is true and a waste of time to furnish the proof again. And unless I can find something "since" then that says otherwise or that it was fixed (regardless of if the problem existed at any given point) - then the supposed problem still exists.
Re: [2005] "#Region" Design-Time Performance
He tried to tell me it has to do with outlining. That using #Regions/#End causes automatic outlining to crawl. Thing is, when I shut outlining off, #Regions persist as if they aren't even part of outlining.
Re: [2005] "#Region" Design-Time Performance
Right, because they are part of the code. All turning off outlining does is turn off the ability to collapse/expand code section. I think. Come to think about it, I've never messed with it.
Meanwhile, if regions is affecting performance, it makes me wonder how long your code base is that it becomes a problem.
-tg
Re: [2005] "#Region" Design-Time Performance
seven, your best bet may be to visit the connect site
connect.microsoft.com
(I believe you need to sign in using a Live/MSN ID)
That is the site where people report BUGS to Microsoft on their various products. From there you can search feedback on a keyword like "region" and see if anyone posted a bug stating regions were causing a problem. Likely there will also be a response from MS (usually to the tune of "not reproducible") however any actual bug fixes will be indicated there as well.
Re: [2005] "#Region" Design-Time Performance
I have an msdn license. Haven't been told how to use it yet, but thats beyond the point I guess. :)
I'll check it out. For now, my nerves are back in check and the new tv is installed; so I can't stay mad forever.
Re: [2005] "#Region" Design-Time Performance
no MSDN license needed.. just a standard windows live/msn ID that you would use to do things like log into Live Messenger, etc...