Right now, to extract the title and description, the whole HTML is downloaded, and passed around to the various methods. And the worst part is that the title and description extraction works by running the WHOLE HTML through RegEX. That's not really great, as pictured in the screenshot beneath. When the scanner starts to extract the title and description, the CPU gets quite toasty. And it can take some time, depending on the size of the HTML.
So I propose that the HTML get cut off at the place where either the title or description tag ends, so we only process the necessary HTML.
Right now, to extract the title and description, the whole HTML is downloaded, and passed around to the various methods. And the worst part is that the title and description extraction works by running the WHOLE HTML through RegEX. That's not really great, as pictured in the screenshot beneath. When the scanner starts to extract the title and description, the CPU gets quite toasty. And it can take some time, depending on the size of the HTML.
<img width="405" alt="image" src="attachments/ed0a5698-fbfa-44e4-b8c3-c69c020977cd">
So I propose that the HTML get cut off at the place where either the title or description tag ends, so we only process the necessary HTML.
More screenshots to showcase the effect.
<img width="1093" alt="image" src="attachments/225290d0-7d1f-4872-89f1-ada0f713fe08">
<img width="939" alt="image" src="attachments/96409518-0588-48c7-8e94-c333f6244ee0">
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Right now, to extract the title and description, the whole HTML is downloaded, and passed around to the various methods. And the worst part is that the title and description extraction works by running the WHOLE HTML through RegEX. That's not really great, as pictured in the screenshot beneath. When the scanner starts to extract the title and description, the CPU gets quite toasty. And it can take some time, depending on the size of the HTML.
So I propose that the HTML get cut off at the place where either the title or description tag ends, so we only process the necessary HTML.
More screenshots to showcase the effect.