From 2eef2140cb422406b68be05a913b88045ba34025 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 3 Jun 2013 12:37:15 -0400 Subject: Updated NEWS. --- NEWS.txt | 3 ++- bs4/diagnose.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/NEWS.txt b/NEWS.txt index dcfb733..d24dfb1 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -20,7 +20,8 @@ a URL or the name of a file on disk (a common beginner mistake). * A number of optimizations improve the performance of the lxml tree - builder by about 33%, and the html.parser tree builder by about 20%. + builder by about 33%, the html.parser tree builder by about 20%, and + the html5lib tree builder by about 15%. = 4.2.1 (20130531) = diff --git a/bs4/diagnose.py b/bs4/diagnose.py index df72f65..4d0b00a 100644 --- a/bs4/diagnose.py +++ b/bs4/diagnose.py @@ -201,6 +201,4 @@ def profile(num_elements=100000, parser="lxml"): stats.print_stats('_html5lib|bs4', 50) if __name__ == '__main__': - #diagnose(sys.stdin.read()) - profile(100000, parser="lxml") - # benchmark_parsers() + diagnose(sys.stdin.read()) -- cgit v1.2.3