ZakFahey / SmartRegions

Executes commands when players enter a region
MIT License
5 stars 14 forks source link

Improve performance of OnUpdate #5

Open Killia0 opened 3 years ago

Killia0 commented 3 years ago

Hopefully improve the performance of OnUpdate substantially, reordered how regions are checked, and listed, only smartregions are checked for if you're in area unless a smart region has -- prefix, which remains a hot path since I'm not sure how to optimize that feature simply. No longer read file each time instead use a FileWatcher system with a dictionary and no LINQ.