Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unlimit whitelist depth #61
I found that current whitelist only allows two level depth, but I like to be able to select more in depth fields.
So I tried this change, that while using up to two level depth whitelist, it keeps running at similar speed / performance that was with previous code, but allows to select any deeper level fields.
(Removed implementation details comment part that no longer apply)
I added benchmark tests, and changed the implementation to an in-place recursive deletion to avoid allocs (should have thought it in the first place, also improves speed).
Results for old implementation:
new implementation gives me these numbers in my PC: