Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Performance issue w/ boost typetraits
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cbranch
Senior Member

USA
30 Posts

Posted - Feb 12 2008 :  1:17:29 PM  Show Profile  Reply with Quote
I'm using 1626 w/ VS2003.

I'm using boost 1.34.1
The problem that I see is with the type traits library which provides type information about template arguments.

Example:
boost::is_pointer<T>::value
or
boost::remove_reference<T>::type

Unfortunately with visual assist enabled, it freezes for about 5 seconds on my workstation when it hits the second double colon (each and every time too). It does however appear to come up with the valid values.

Boost is certainly doing some funky stuff w/ macros and template code, so it easily could be a worse case scenario for Visual Assist. I'd love this issue fixed, and improving the performance here might increase performance across the board if the fix is generic.

Colin Branch

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Feb 12 2008 :  5:16:31 PM  Show Profile  Reply with Quote
What exactly are you typing?

I have never used this boost library, so I have simply added:

#include <boost/type_traits/is_pointer.hpp>

static void testIsPointerAndOther()
{
	boost::is_pointer<T>::value;
	boost::remove_reference<T>::type;
}

to a cpp file, using VS2005 and VA 1626. I have tried this with boost 1.33.1 and 1.34.1

"remove_reference" is not suggested with 1.33.1, but I am not seeing any CPU spikes or slow downs with either version of boost. I have tried this on two different machines.

When I type the second double colon a listbox appears without delay.

zen is the art of being at one with the two'ness
Go to Top of Page

cbranch
Senior Member

USA
30 Posts

Posted - Feb 15 2008 :  12:03:45 PM  Show Profile  Reply with Quote
Well I can tell you it's not causing a CPU spike, but it does take a long time. Could be a VS2003 issue. I tried your exact code and both value and type take between 3-5s to pop up, during that time the entire IDE is locked.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Feb 15 2008 :  8:51:36 PM  Show Profile  Reply with Quote
I have just tested this in VS2003, and I am not seeing any problems there either. I have tried both Boost 1.33.1 and 1.34.1, with VA 1626.

Do you have:

VA Options -> Advanced -> Listboxes -> Get content from default Intellisense

turned on or off? It is off in my tests.

Can you please go to:

VA Options -> System Info -> Copy Info

and paste the details (from the clipboard) into this thread. This will give us the basic information about your setup. It is possible how you are telling VA about boost is a factor.

zen is the art of being at one with the two'ness
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Feb 18 2008 :  03:05:06 AM  Show Profile  Reply with Quote
Sure sounds like an IntelliSense problem to me. Try renaming feacp.dll in the VS directory and see if the error persists. Note that all IntelliSense features will be disabled.

I know this helped for me and I'm using boost in all my projects :).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Feb 18 2008 :  08:09:16 AM  Show Profile  Reply with Quote
Since you are using 2003 you might be better off trying a zero length read only NCB file instead, as described here:

http://docs.wholetomato.com?W133

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000