Page 1 of 1

Search for HTML elements pretty slow in 5.3.1

Posted: Wed Mar 25, 2015 5:09 pm
by odklizec
Hi,

While investigating another 5.3.1 issue, I noticed a strange slowdown, while searching for HTML elements. I'm pretty sure this did not happen in 5.2.3! Additionally, the same elements are highlighted almost instantly if selected from Studio repository or via Spy.

The slowdown happens only if the solution is started by F5 from Studio, both in Debug and Release mode. It does not happen if the solution is compiled and started from the command line (both Debug a Release).

Additionally, the search speed is OK while running the solution from Studio without attached debugger (by Ctrl+F5). But this is really weird, because running solution without attached debugger should have the same effect as running in Release mode or not?

Steps to reproduce:
- go to this page http://www.w3schools.com/html/tryit.asp ... html_table
- replace the existing HTML code with this one and press "See Result":

Code: Select all

<!DOCTYPE html>
<html>
<body>

<table border="1" style="width:50%">
  <tr>
    <td id="cust_1">cust_1</td>
    <td id="serviceTime_1"></td>
  </tr>
  <tr>
    <td id="cust_2">cust_2</td>
    <td id="serviceTime_2"></td>
  </tr>
  <tr>
    <td id="cust_3">cust_3</td>
    <td id="serviceTime_3"></td>
  </tr>
  <tr>
    <td id="cust_4">cust_4</td>
    <td id="serviceTime_4"></td>
  </tr>
  <tr>
    <td id="cust_5">cust_5</td>
    <td id="serviceTime_5"></td>
  </tr>
</table>

</body>
</html>
- load the attached project and try run it by F5 >>> you should experience significant delay while searching for elements
- switch build configuration to Release and run it again (by F5) >> still slow search
- now try to run it by Ctrl + F5 >> elements found instantly

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Fri Mar 27, 2015 10:44 am
by Support Team
Hi odklizec,

Thank you for reporting this issue. We were able to reproduce the behavior on our machines as well. I have added the issue to our internal bug-tracking system, we will try to fix the issue as soon as possible.

Regards,
Robert

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Fri Mar 27, 2015 11:11 am
by odklizec
Hi Robert,

Great! Thanks for the info.

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Fri Apr 03, 2015 10:08 am
by Support Team
Hi odklizec,

We found out that the target CPU setting "Any CPU" is causing the issue. Please try to reset the target CPU to "32bit", it should solve the performance issue.

Regards,
Robert

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Fri Apr 03, 2015 10:51 am
by odklizec
Hi Robert,

Thanks for the info. Good find! It definitely improved the search speed in provided sample. However, running the project without attached debugger seems to be still noticeably faster, even if the project is started in Release mode?

It's not so evident (but still visible) with the sample project I provided, but I can clearly see it while running my production solution (which has already set CPU to "32bit"). It takes around 50mins to finish the project when started from Studio (release mode), and it finishes under 30 minutes if started from command line. So the target CPU seems not be the only reason of the slow down?

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Tue Apr 07, 2015 12:18 pm
by Support Team
Hello odklizec,

We already found the root of the issue. It’s caused from an internal code change, we will try to fix this as soon as possible.

Kind regards,
Robert

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Tue Apr 07, 2015 12:20 pm
by odklizec
Hi Robert,

Great news! Thanks for the info.

Re: Search for HTML elements pretty slow in 5.3.1

Posted: Mon Apr 20, 2015 3:58 pm
by odklizec
I can confirm the issue is fixed in 5.3.2. Thanks!