cloudflare / cloudflare/workerd

`tools\cross\wpt_logs.py` loading whole xml file

Open
#6,333 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

The `parse_log` function in `tools\cross\wpt_logs.py` loads the whole XML file for searching ([source](https://github.com/cloudflare/workerd/blob/main/tools/cross/wpt_logs.py#L84-L86)). This can be prevented using iterative parsing - `ElementTree.iterparse(log_file)`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.