1. Creates many objects - to populate a screen with controls
2. Deletes them - to clear the screen for repopulation.
At the moment my objects have IDs of 91000.For all objects, the ID is guaranteed to be unique within a stack. IDs are not reused if the object is deleted.
I'm concerned that over time the IDs will get larger and larger because the IDs are not reused.
Will this lead to any appreciable loss in speed of the program?
Lets say that my program runs all day for a year. It refreshes the screen once a minute deleting the old objects and creating 200 new objects.
200 * 60 * 24 * 365 = 105,120,000
I guess it would take 50 year of running continuously for the ID numbers to be so great that they take up more than 1 byte on a 32bit computer.