Reduce number of transformer traversals (#12881)
This change improves grading performance by combining what had previously been multiple course tree traversals into a single traversal with combined filtering logic.
Showing
- lms/djangoapps/course_api/blocks/transformers/block_depth.py 1 addition, 1 deletionlms/djangoapps/course_api/blocks/transformers/block_depth.py
- lms/djangoapps/course_api/blocks/transformers/proctored_exam.py 5 additions, 8 deletions...angoapps/course_api/blocks/transformers/proctored_exam.py
- lms/djangoapps/course_blocks/transformers/library_content.py 7 additions, 16 deletionslms/djangoapps/course_blocks/transformers/library_content.py
- lms/djangoapps/course_blocks/transformers/split_test.py 9 additions, 7 deletionslms/djangoapps/course_blocks/transformers/split_test.py
- lms/djangoapps/course_blocks/transformers/start_date.py 11 additions, 15 deletionslms/djangoapps/course_blocks/transformers/start_date.py
- lms/djangoapps/course_blocks/transformers/user_partitions.py 9 additions, 10 deletionslms/djangoapps/course_blocks/transformers/user_partitions.py
- lms/djangoapps/course_blocks/transformers/visibility.py 9 additions, 10 deletionslms/djangoapps/course_blocks/transformers/visibility.py
- openedx/core/lib/block_structure/block_structure.py 66 additions, 12 deletionsopenedx/core/lib/block_structure/block_structure.py
- openedx/core/lib/block_structure/tests/helpers.py 16 additions, 1 deletionopenedx/core/lib/block_structure/tests/helpers.py
- openedx/core/lib/block_structure/tests/test_block_structure.py 2 additions, 2 deletions...dx/core/lib/block_structure/tests/test_block_structure.py
- openedx/core/lib/block_structure/tests/test_transformers.py 13 additions, 5 deletionsopenedx/core/lib/block_structure/tests/test_transformers.py
- openedx/core/lib/block_structure/transformer.py 58 additions, 4 deletionsopenedx/core/lib/block_structure/transformer.py
- openedx/core/lib/block_structure/transformers.py 55 additions, 13 deletionsopenedx/core/lib/block_structure/transformers.py
Loading
Please register or sign in to comment