Skip to content

Extremely slow execution #4

@hdodov

Description

@hdodov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions