Author Topic: SE hang on search Window 7-64 (v22.0.2.1)  (Read 220 times)

JimmieC

  • Senior Community Member
  • Posts: 414
  • Hero Points: 13
SE hang on search Window 7-64 (v22.0.2.1)
« on: May 09, 2018, 10:56:13 pm »
SE stopped responding quite some time on a search. After about 2 minutes, the "milky not-repsonding" screen went back to normal SE colors for about 5 seconds. Then it went right back to not responding "milky" for another several minutes.

I have not seen this before and doubt that it will occur again anytime soon. Just an FYI. See attached image.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1174
  • Hero Points: 112
Re: SE hang on search Window 7-64 (v22.0.2.1)
« Reply #1 on: May 10, 2018, 01:26:06 pm »
\o:b translates to [ \t]+ (one or more spaces), followed by a * (zero or more), both maximal match.  I suspect it eventually finishes, because of both + and * modifier, it runs in exponential time. Depending on the content it is matching, it can be inefficient and not as optimized as Perl.  I'd recommend simplifying the expression to use zero or more spaces [ \t]* rather than \o:b*.

JimmieC

  • Senior Community Member
  • Posts: 414
  • Hero Points: 13
Re: SE hang on search Window 7-64 (v22.0.2.1)
« Reply #2 on: May 10, 2018, 01:40:21 pm »
OK. Looks like I chose an inefficient search pattern. Could find the string with a more efficient search. Got it. Thanks.