Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of getPhases #272

Open
wants to merge 2 commits into
base: master
from
Open

Conversation

@gsnedders
Copy link
Member

@gsnedders gsnedders commented Jul 13, 2016

With this we no longer include "process the token using the rules for" phases in the debug log.

This also needs perf review given it touches mainLoop.

(If you want to view the diff, append ?w=1 to the URL to ignore whitespace, otherwise the reindenting of the phases just dominates.)

@codecov-io
Copy link

@codecov-io codecov-io commented Jul 13, 2016

Current coverage is 90.33%

Merging #272 into master will decrease coverage by 0.10%

@@             master       #272   diff @@
==========================================
  Files            51         51          
  Lines          6926       6904    -22   
  Methods           0          0          
  Messages          0          0          
  Branches       1332       1329     -3   
==========================================
- Hits           6264       6237    -27   
- Misses          501        506     +5   
  Partials        161        161          

Powered by Codecov. Last updated by 945911b...a120557

@gsnedders gsnedders force-pushed the gsnedders:constant_phases branch from 01cc4a8 to a120557 Jul 13, 2016
@willkg
Copy link
Contributor

@willkg willkg commented Oct 3, 2017

@gsnedders Is this important? There's no explanatory issue, so I'm not sure what the value is here and whether we should spend time on it for 1.0 or not.

@gsnedders
Copy link
Member Author

@gsnedders gsnedders commented Oct 5, 2017

@willkg Reduction in complexity and potentially performance gains by reducing indirection.

@willkg
Copy link
Contributor

@willkg willkg commented Oct 5, 2017

Ok. I'm going to push this off until after 1.0, then.

@gsnedders gsnedders force-pushed the gsnedders:constant_phases branch from a120557 to d764def Jun 23, 2020
@codecov-commenter
Copy link

@codecov-commenter codecov-commenter commented Jun 24, 2020

Codecov Report

Merging #272 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #272      +/-   ##
==========================================
- Coverage   91.07%   91.03%   -0.04%     
==========================================
  Files          50       50              
  Lines        7044     7016      -28     
  Branches     1341     1337       -4     
==========================================
- Hits         6415     6387      -28     
  Misses        475      475              
  Partials      154      154              
Impacted Files Coverage Δ
html5lib/_utils.py 81.25% <ø> (-1.71%) ⬇️
html5lib/html5parser.py 98.41% <ø> (-0.03%) ⬇️
html5lib/tests/test_parser2.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f4646e6...db7310d. Read the comment docs.

gsnedders added 2 commits Jun 23, 2020
This added a fair bit of complexity, and notable made the Phase classes
dynamically generated.

However, by doing this, we no longer include "process the
token using the rules for" phases in the debug log.
@gsnedders gsnedders force-pushed the gsnedders:constant_phases branch from db7310d to 8cff6aa Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.