Update _purify. GC optimization

furthermore, as it's a recursive f()
Merge pull request #1431 from emanwebdev/patch-45

Update _purify. GC optimization