Currently, the queue is being serialized into a JSON for every request to /queue made. Instead, we can generate the JSON whenever the queue is changed (someone is added or removed) and keep returning that version of the JSON until the queue is modified again.
This should drastically speed up the /queue route which is by far the most frequently called.
Description
Currently, the queue is being serialized into a JSON for every request to
/queue
made. Instead, we can generate the JSON whenever the queue is changed (someone is added or removed) and keep returning that version of the JSON until the queue is modified again.This should drastically speed up the
/queue
route which is by far the most frequently called.