Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow function (block_grade_me_tree) #90

Open
Fragonite opened this issue Sep 8, 2024 · 0 comments
Open

Slow function (block_grade_me_tree) #90

Fragonite opened this issue Sep 8, 2024 · 0 comments

Comments

@Fragonite
Copy link

Fragonite commented Sep 8, 2024

While profiling a course, I observed that block_grade_me_tree is adding approximately 10 seconds to the page load time when logged in as a site admin. Student accounts are not as affected.

This issue can be addressed by taking the following steps:

  • Minimise the number of database calls by batching them where possible.
  • Move get_string calls outside of loops where possible.
  • Update HTML generation (not necessarily a performance issue but it could definitely be improved).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant