We are very excited to announce the release of Visual Studio 2010’s Release Candidate. The official announcement can be found on Soma’s blog. You can download the RC from this location and it includes a go-live license for people who want to deploy in their production environment. This release incorporates many Customer Connect bug fixes and includes significant performance improvements. Just like Beta2 you can log Customer Connect bugs for this release. Here you can find a list along with descriptions of what is new in Visual Studio 2010. We are excited to see your feedback and answer your questions.
Visual C++ Team
Hi, you did a great work!
But I have one small suggestion, could you make a summary table like this http://gcc.gnu.org/gcc-4.5/cxx0x_status.html. It will be very interesting to know what c++0x features exactly realized.
I do use precompiled headers for this particular solution. The source files are designed for multi-platform use and the precompiled header essentially includes many of our commonly used standard library/Boost includes.
/Yc is specified for PrecompiledHeader.h and the project is set to /Yu PrecompiledHeader.pch.
If you're referring to the IntelliSense precompiled header specifically, I'm not quite certain how to see whether or not it's enabled or modify those options.
I poked around with a bunch of the options, such as having rescans, not doing the rescans, disabled/enabled auto updating, and having more cached translation units (which worked fine after the initial 15 second population - until I wanted information from a class outside of the already established IntelliSense databases), etc.
Other than having more compilation units (which didn't speed up the initial time), there wasn't much that increased the effectiveness of the original parse.
@Igor: Thank you for your suggestion. I will talk to the relevant team and hope will have something like that for you.
Li Shao, Project and Build Team
VC++ Compiler is very slow and generates large executable. Simple Wizard-generated MFC Dialog-based dummy application took about 90 seconds to compile and generated 1700 KB executable. VC++ compiler in Visual Studio 2005 and 2008 too 20 seconds to compile and generated 300 KB executable for the same application. Why is it so?
The problem you are seeing is not a slow compiler. Most of the additional build time is because you are building a statically-linked MFC application.
The increased capabilities of MFC have introduced a number of additional interdependencies that end up causing more of MFC to be pulled in when linking a minimal application that links with the static MFC libraries. We are actively working on finding and eliminating these interdependencies so that the size of a minimal static-linked application will shrink, and will definitely address this in a future release.
Please note that linking against the static MFC libraries is not the default (this being one of the reasons) so I recommend that you link dynamically instead. Also note that as your MFC application grows (a minimal MFC application is probably not that interesting) the statically-linked application size differences will be less because more of MFC would be linked in anyway.
Visual C++ Libraries Development
When you load your solution if PCH is enabled, we'll create intellisense pch files under "ipch" directory where your .sln file is. See if the time-stamps of the binaries inside are getting updated as you open your solutions.
I assume you're doing GotoDef or CallHierarchy when you say "-until I wanted information from a class outside of the already established IntelliSense databases". How big is that translation unit? Can you please preprocess with /P and see how many lines of code there are? And how much of that comes from PCH? If it is really taking 15 seconds to do initial parsing on your translation unit, then increasing the number out of proc parsers "Max cached translation units" could alleviate the need to recycle your parsed states. But looks like you've already tried this.
Here's what we expect with VS2010 RTM for intellisense performance:
- For a 7MB 640K lines of code (Boost+Windows headers) without using PCH, the initial parsing for intellisense is about 7-8 seconds. On 2GB RAM machine.
Windows C++ Team
The output of the /P (I threw it in the most included file in the project and consequently, the file that also has the most includes) gave me 1072905 lines over 11.5MB, so there were a lot of lines that were composed of only a carriage return/line feed pair.
A different compilation unit that has nothing to do with that larger compilation unit (not included directly or indirectly) ended up being 1059581 lines over 11.3MB.
Changing the precompiled header to include 8 fewer files that aren't super useful, mostly Boost:
Original compilation unit: 1027151/11.2MB
Other compilation unit: 935633/9.90MB
IntelliSense population took about the same amount of time - which isn't really surprising with such a minute decrease.
I'm not terribly concerned, my hard drive is truly on its way out. It's running about half as quickly as it was 2 months ago by all metrics I've used. Thank you very much for trying to see if there was more to it. That kind of dedication to performance should not be taken lightly.
Hi! I do not found in this release of how can I work with Databases (to create the set of data and s.o.). Also I do not found the prompter, when you type, for example, this-> and just is opened the list of all elements of object. In C# and VB such possibility is.
You can check out http://msdn.microsoft.com/en-us/library/7wtdsdkh(VS.100).aspx for information about data access with Visual C++.
Thank you, Boris Jabes, for the answer. But in VC++ RC it doesn't works such as in VC++ 2005. and as in C# RC.
@pbi are you using C++/CLI? If so, the Intellisense experience is degraded but we intend to rectify this after RTM (can't be anymore specific).
Thank you, Boris Jabes. Not so,not so. If you would send to me your e-mail, I would send to you two pictures what specify my problems. Thank's
My e-mail is
@ pbi the Visual C++ Language forum (http://social.msdn.microsoft.com/Forums/en-US/vcpluslanguage/threads) is the best place to post this question . Thanks!