LibreBooking / app

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.
GNU General Public License v3.0
371 stars 220 forks source link

feat: new algorithm for fast loading reservations #373

Closed JohnVillalovos closed 1 month ago

JohnVillalovos commented 1 month ago

Add a new algorithm for fast loading reservations in the schedule.

Marking it as "experimental" and users will have to explicitly enable it.

Limitations:

The performance gain is very significant when loading larger schedules. On a one day schedule with 332 resources. The legacy algorithm took 23 seconds to "Load Reservations". While the new algorithm took 0.6 seconds. "Load Reservations" is the time for the renderEvents() method to run. It does not count the time for the web page to be fetched from the server.

The more resources / days in the schedule the larger the difference in timing becomes.

Closes: #370

JohnVillalovos commented 1 month ago

@ramartins02 Not sure if you have any interest in this or not.