You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen a hybrid approach in other implementations of methods to deduplicate values, since a hash table and sorting do worse than nested for loops in practice at very small sizes
For small n=count($input), use a regular foreach over buckets in the zend_array to be returned and call zend_is_identical one by one
For large n, use a hash table similar to the previous comment
The text was updated successfully, but these errors were encountered:
TysonAndre
changed the title
Benchmark hybrid approach in Teds\unique_values
Benchmark hybrid approach in Teds\unique_values, use if practical
Oct 22, 2022
I've seen a hybrid approach in other implementations of methods to deduplicate values, since a hash table and sorting do worse than nested for loops in practice at very small sizes
n=count($input)
, use a regular foreach over buckets in thezend_array
to be returned and call zend_is_identical one by onen
, use a hash table similar to the previous commentThe text was updated successfully, but these errors were encountered: