Home Dashboard Directory Help
Search

Slow compilation of 'large' amounts of data (objects/arrays) with references by OReubens


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 694100
Opened: 10/10/2011 8:54:18 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

I have an app that requires some extensive tables where elements of tables refer to elements in other tables.

The VS2010 C++ (reproducible in VS2008) compiler seems to have difficulty compiling sources with large amounts of data declarations (variables) when referring to other variables depending on how you're doing it.
Details
Sign in to post a comment.
Posted by Microsoft on 5/3/2012 at 10:26 AM
The fix is available in the Visual Studio 11 Beta.

ian Bearman
Principal Software Developer
Visual C++ Code Generation and Optimization
Posted by OReubens on 5/3/2012 at 5:43 AM
Since submitting this issue, the codebase has now progressed to a degree that I've exhausted the workarounds and messy cludges around not being able to efficiently have const structures have references to other const structures.

Can you elaborate on the "future release of the compiler" you speak of ?

Does this mean this fix is available in the Visual Studio 11 Beta ? Or that it will be available in the VS11 Release ?
Posted by Microsoft on 11/21/2011 at 11:27 AM
Thank you for reporting this. I was able to confirm this compiler performance issue. The compiler takes approximately 41 seconds to compile your sample test case on my workstation which is significantly longer than i would expect. I traced the issue to an operation with an O(n^2) running time where n is the number of overlapping symbols. Potentially, this could be replaced with a constant time look-up which would greatly improve your scenario with negligible cost to the other scenarios. To set expectations, I prototyped this solution and was able to get the compile time down to about 8 seconds (a 5x speed up). A complete solution will address this issue in a future release of the compiler.

Thanks,
ian Bearman
Visual C++ Code Generation and Optimization Team
Posted by MS-Moderator09 [Feedback Moderator] on 10/10/2011 at 10:54 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 10/10/2011 at 9:41 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.