NUMde / compass-numapp-web

NUM COMPASS web app
MIT License
0 stars 0 forks source link

⚡️ greatly improve loading performance for large questionnaires #5

Closed jonathan-reisdorf closed 2 years ago

jonathan-reisdorf commented 2 years ago

By adding a small caching layer to isAnswered() and thus drastically decreasing the recursion happening while rendering the questionnaire tree and determining the active question when opening the questionnaire, loading times for bigger questionnaires are greatly reduced. In case of the GECCO questionnaire from the implementation guide, this would result in a loading time decrease of more than 99%.