XML-Parser icon indicating copy to clipboard operation
XML-Parser copied to clipboard

Extremely slow execution

Open hdodov opened this issue 7 years ago • 0 comments

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.

hdodov avatar Sep 25 '18 12:09 hdodov