Use a frozenset in sanitizer.py by mgilson · Pull Request #202 · html5lib/html5lib-python · GitHub
Skip to content

Use a frozenset in sanitizer.py#202

Closed
mgilson wants to merge 1 commit into
html5lib:masterfrom
mgilson:frozenset
Closed

Use a frozenset in sanitizer.py#202
mgilson wants to merge 1 commit into
html5lib:masterfrom
mgilson:frozenset

Conversation

@mgilson

@mgilson mgilson commented Aug 9, 2015

Copy link
Copy Markdown

Since all of those lists were only used for membership checking, this could provide a small speedup.

It also decreases the number of tests due to elements being repeated in some of the fields.

@gsnedders

Copy link
Copy Markdown
Member

@mgilson

mgilson commented Aug 10, 2015

Copy link
Copy Markdown
Author

Conflict resolution is why we use git, right? :-).

@gsnedders

Copy link
Copy Markdown
Member

Bah, git doesn't cope that well when stuff is largely rewritten and moved to a different path. :)

@gsnedders gsnedders closed this May 20, 2016
@landscape-bot

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants