mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Throw out decoded UTF-32 data in HTMLTokenizer after parser runs
This ends up saving quite a bit of memory on many pages, since UTF-32 uses 4 bytes per code points. As an example, it reduces the footprint on https://gymgrossisten.com/ by 2 MiB.
This commit is contained in:
committed by
Andreas Kling
parent
b10f2993b3
commit
3593c3b687
Notes:
github-actions[bot]
2025-10-24 06:54:24 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/3593c3b687a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6561
@@ -259,6 +259,8 @@ void HTMLParser::run(HTMLTokenizer::StopAtInsertionPoint stop_at_insertion_point
|
||||
}
|
||||
|
||||
flush_character_insertions();
|
||||
|
||||
m_tokenizer.parser_did_run({});
|
||||
}
|
||||
|
||||
void HTMLParser::run(URL::URL const& url, HTMLTokenizer::StopAtInsertionPoint stop_at_insertion_point)
|
||||
|
||||
Reference in New Issue
Block a user