Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely slow execution #4

Open
hdodov opened this issue Sep 25, 2018 · 0 comments
Open

Extremely slow execution #4

hdodov opened this issue Sep 25, 2018 · 0 comments

Comments

@hdodov
Copy link

hdodov commented Sep 25, 2018

Trying to parse this XML:

<td >Mexico</td><td style="max-width: 768px; white-space: normal;">123456789012345678901234567</td><td></td><td>&nbsp;<span class="mx" data-price="N/A"></span></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>

takes up to 6 seconds. Pretty slow.

Well, if you add 5 more numbers to the second <td>'s content:

<td >Mexico</td><td style="max-width: 768px; white-space: normal;">12345678901234567890123456789012</td><td></td><td>&nbsp;<span class="mx" data-price="N/A"></span></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>

the execution time is now 180 seconds.

It seems like each symbol added doubles the execution time. The fuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant