no need to insert a dep in seen list if its already there, no need to double allocate the array.
Merge pull request #2631 from SamSaffron/master

perf: no need to insert a dep in seen list if its already there.