How efficient is this algorithm?

If you check that for the whole BP, it has no effect…