diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-09-10 09:00:03 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-09-10 09:00:03 +1200 |
| commit | e8406706852969e8e6a3194efb4c069b5ffdbe21 (patch) | |
| tree | 364404bc7fc43b0bcbdbf2e95866469c0a9a06e6 /src | |
| parent | 08d060660f2f6bd678770026e109e0cd7429e6f1 (diff) | |
docs: perf comment
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 3dc8e99..d156c42 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -284,6 +284,7 @@ pub fn parse_document(document: &Html) -> HashMap<&str, Course<'_>> { let mut subject_area = ""; let mut working_course = Course::default(); + // PERF: Could we gain a meaningful speed boost by splitting this into chunks of each course? for elem in document.select(&Selector::parse("p").expect("selector should always be valid")) { let elem_value = elem.value(); |