Author Topic: speeding up auto-completion and other tag related help  (Read 15654 times)

srouleau

  • Community Member
  • Posts: 67
  • Hero Points: 4
Re: speeding up auto-completion and other tag related help
« Reply #15 on: October 13, 2006, 05:54:48 pm »
Clark,

I can repro greggman's lag as well, but I had to do it manually.  For some reason the 'argument' command didn't do what I wanted it to do (yet another macro I didn't know about), so I ended up pasting the foo function tons of times until I had a 10K lines file.

I went to line 400, did #i<space> and it was indeed instantaneous.  I did <ESC>, that took a while.  I then pressed <f> and that, too, felt quite sluggish.  I pressed backspace and oh boy, was that a pain.

Steph.

greggman

  • Senior Community Member
  • Posts: 277
  • Hero Points: 14
Re: speeding up auto-completion and other tag related help
« Reply #16 on: October 13, 2006, 10:03:08 pm »
I just tried it at home (the previous was at work) and it has the same problem. a 1~2 second delay.

That's with NO PROJECT open and the only C++ tag files are VC++ 2003 includes - the default, Maya 7.0's includes and Direct X 9's.

hs2

  • Senior Community Member
  • Posts: 2744
  • Hero Points: 288
Re: speeding up auto-completion and other tag related help
« Reply #17 on: October 13, 2006, 10:58:15 pm »
Interesting observations guys !
That should be really valuable for the Slickteam.

As supposed the '#i' problem is related to Options->General->More->'Highlight matching blocks'
I don't know if 'stop hilite parsing when giong off-screen' is an applicable optimization.
At least I can't see any problems with it.

HS2

hs2

  • Senior Community Member
  • Posts: 2744
  • Hero Points: 288
Re: speeding up auto-completion and other tag related help
« Reply #18 on: October 14, 2006, 06:37:08 am »
Sorry - forget about the last proposal.
Of course I want to get a hilite when sitting on one part of a matching pair - regardless if the other part is visible or not.
So it's just costly by nature - seems there is not way out.
For daily use files and 'not-too-old' computer it's ok and I really like it.
But for huge, no HUGE files it's better to switch it off ... or set Doc. mode to fundamental ;)

HS2

greggman

  • Senior Community Member
  • Posts: 277
  • Hero Points: 14
Re: speeding up auto-completion and other tag related help
« Reply #19 on: October 14, 2006, 06:42:34 am »
The matching is not the problem as far as I can tell. Typing a opening paren at the top of that generate 4000line file and going to the bottom and typing a closing paren there is zero delay.

hs2

  • Senior Community Member
  • Posts: 2744
  • Hero Points: 288
Re: speeding up auto-completion and other tag related help
« Reply #20 on: October 14, 2006, 07:31:44 am »
Hmmm - you're right. Paren matching seems to be a bit different.
However, if the mentioned option is unchecked I don't get 'key-lags' anymore.

HS2

BTW: I don't get a hilite for the long-distance parens following your example. Maybe another problem ...
I think that's caused by exceeding the max. supported nesting level.
« Last Edit: October 14, 2006, 07:33:52 am by hs2 »

hs2

  • Senior Community Member
  • Posts: 2744
  • Hero Points: 288
Re: speeding up auto-completion and other tag related help
« Reply #21 on: October 14, 2006, 07:41:58 am »
Strange ... I checked the assumed nesting level limit with parens only and there was no problem.
Seems that there is no limit.
Using your example w/ some code in between I don't get a hilite, but find-matching-paren works fine....

HS2