Skip to content

Commit 07e1eec

Browse files
author
spicychickensauce
committed
Use unordered_set instead of set
1 parent 25daaa4 commit 07e1eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_src/lazy_html.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#include <functional>
55
#include <memory>
66
#include <optional>
7-
#include <set>
87
#include <stdexcept>
98
#include <string>
109
#include <tuple>
10+
#include <unordered_set>
1111
#include <variant>
1212

1313
#include <lexbor/html/html.h>
@@ -717,7 +717,7 @@ FINE_NIF(child_nodes, 0);
717717

718718
ExLazyHTML parent_node(ErlNifEnv *env, ExLazyHTML ex_lazy_html) {
719719
auto nodes = std::vector<lxb_dom_node_t *>();
720-
auto inserted_nodes = std::set<lxb_dom_node_t *>();
720+
auto inserted_nodes = std::unordered_set<lxb_dom_node_t *>();
721721

722722
for (auto node : ex_lazy_html.resource->nodes) {
723723
auto parent = node->parent;

0 commit comments

Comments
 (0)