Commit 75fd425 1 parent 5629ac7 commit 75fd425 Copy full SHA for 75fd425
File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 48
48
- ` SliceReader::get_ref() `
49
49
- ` Writer::get_ref() `
50
50
- ` Writer::new() `
51
+ - [ #763 ] : Hide ` quick_xml::escape::resolve_html5_entity ` under ` escape-html ` feature again.
52
+ This function has significant influence to the compilation time (10+ seconds or 5x times)
51
53
52
54
[ #650 ] : https://github.com/tafia/quick-xml/issues/650
53
55
[ #755 ] : https://github.com/tafia/quick-xml/pull/755
54
56
[ #758 ] : https://github.com/tafia/quick-xml/pull/758
55
57
[ #759 ] : https://github.com/tafia/quick-xml/pull/759
58
+ [ #763 ] : https://github.com/tafia/quick-xml/issues/763
56
59
57
60
58
61
## 0.32.0 -- 2024-06-10
Original file line number Diff line number Diff line change @@ -328,10 +328,14 @@ pub const fn resolve_xml_entity(entity: &str) -> Option<&'static str> {
328
328
}
329
329
330
330
/// Resolves all HTML5 entities. For complete list see <https://dev.w3.org/html5/html-author/charref>.
331
+ #[ cfg( feature = "escape-html" ) ]
331
332
pub const fn resolve_html5_entity ( entity : & str ) -> Option < & ' static str > {
332
333
// imported from https://dev.w3.org/html5/html-author/charref
333
334
// match over strings are not allowed in const functions
334
335
//TODO: automate up-to-dating using https://html.spec.whatwg.org/entities.json
336
+ //TODO: building this function increases compilation time by 10+ seconds (or 5x times)
337
+ // Maybe this is because of very long match
338
+ // See https://github.com/tafia/quick-xml/issues/763
335
339
let s = match entity. as_bytes ( ) {
336
340
b"Tab" => "\u{09} " ,
337
341
b"NewLine" => "\u{0A} " ,
You can’t perform that action at this time.
0 commit comments