Closed thomas-rasmussen closed 2 years ago
Does not help (probably also the conclusion that was made when the macro was originally made). We can use the method to update the number of elements in the hash table, but the keys are still values from 1 to the original n, making it impossible to find higher key values if n is updated.
Can the number of elements in the hash table be updated every time a control is removed using obj.num_items? Find documentation on obj.num_itmes. If this can be used to reassess the number of elements in the hash object everytime a control is removed, the matching could be done much more efficient when matching with replacement.
https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Regina-User-Group/ShaunKaufmann-IntroHash-Sept2013.pdf