Skip to content

Use binary search to look for duplicate names

Latest
Compare
Choose a tag to compare
@darrenklein darrenklein released this 17 Feb 00:16

It's probably overkill... but in the event that a user has a lot of items in their trash (or are attempting to trash a lot of items... or both...), improve the efficiency of the script by using a binary search to determine whether or not an item with an identical name is already in the trash, or in the batch of items being trashed in an operation.