Original code would search through the entire list of reservations for each requested reservation slot. This change stores the whole list inside a map for faster lookup.
[x] Use a map for faster reservation lookup performance
[x] Improved logging
[x] Better short-circuiting on searching through the priority list of reservations
Original code would search through the entire list of reservations for each requested reservation slot. This change stores the whole list inside a map for faster lookup.