Possible Efficiency Improvements Related to BeautifulSoup? #74

Closed
opened 2023-08-01 21:01:12 +00:00 by hz · 1 comment
Owner

Right now, running BeautifulSoup on the output HTML page (and running through the tree to find our custom tags) takes up the bulk of page load times. This is especially true for large/complex HTML output. I wonder if it would be better to run these processes a bunch of times, on small pieces of the page as they're being assembled (e.g., as they're being put into cs_problem_spec) rather than doing one big pass at the end.

Maybe worth experimenting.

Right now, running BeautifulSoup on the output HTML page (and running through the tree to find our custom tags) takes up the bulk of page load times. This is especially true for large/complex HTML output. I wonder if it would be better to run these processes a bunch of times, on small pieces of the page as they're being assembled (e.g., as they're being put into `cs_problem_spec`) rather than doing one big pass at the end. Maybe worth experimenting.
Author
Owner

Looking a bit more, it seems like BeautifulSoup is not the problem. I'm going to close this for now; we can always look at it more later on.

Looking a bit more, it seems like BeautifulSoup is not the problem. I'm going to close this for now; we can always look at it more later on.
hz closed this issue 2025-09-27 17:18:38 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
catsoop/catsoop#74
No description provided.