Files
goquery/bench
Martin Angers c7533ba696 maintain a set of existing target nodes to deduplicate
The old implementation used nested loops to check if one of the
new nodes was already in the existing nodes. This commit
maintains a map[*html.Node]bool so that a single loop over
the new elements is required. This is slower for small
slices though, and allocates more. The next step is for
appendWithoutDuplicates to accept a map as argument so
that the set is not recreated on each call from mapNodes.
2016-08-27 18:55:21 -04:00
..
2012-09-17 11:10:28 -04:00
2012-11-11 21:26:27 -05:00
2013-05-05 11:57:50 -04:00
2013-12-02 19:52:21 -05:00
2014-04-11 12:25:45 -04:00