slist: speed up copy_possibles()
commit6015fa01441540de4428197e2de6178c6cf1fb6b
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Feb 2019 11:35:27 +0000 (20 14:35 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Feb 2019 11:35:27 +0000 (20 14:35 +0300)
tree40b0c5f98aae667c6e98c1a4cc85b0cbea58112a
parentfc9ee39a74ceffdf636448dd95b9cbc4b2d17f90
slist: speed up copy_possibles()

The copy_possibles() is called really often.  The problem is that algorythm
for add_possible_sm() is horrible, because we iterate though the whole
list every time we add a new possible.

I should do this properly, but I just want to commit something right away.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_slist.c