The base branch for this ticket is NG23-246-content-on-page-is-not-visible-on-begin-attempt because that branch has the refactor that splits the prologue from the lesson liveview. => This PR should be merged after the NG23-246 PR gets merged.
The memory usage optimization was implemented for the lesson live -as the ticket asked- and also for the prologue live and the review live, since I noticed those 2 other liveviews also had high memory usage.
The strategy for the optimization was:
slimming the assigns
implementing temporary assigns (mainly for page_context which is a large map)
manually triggering the garbage collection after the liveview was mounted.
Link to the ticket
The base branch for this ticket is
NG23-246-content-on-page-is-not-visible-on-begin-attempt
because that branch has the refactor that splits the prologue from the lesson liveview. => This PR should be merged after the NG23-246 PR gets merged.The memory usage optimization was implemented for the lesson live -as the ticket asked- and also for the prologue live and the review live, since I noticed those 2 other liveviews also had high memory usage.
The strategy for the optimization was:
Lesson Live
On mount before
On mount after
Hibernation before
Hibernation after
Review Live
On mount before
On mount after
Hibernation before
Hibernation after
Prologue Live
On mount before
On mount after
Hibernation before
Hibernation after