Skip to content

Commit

Permalink
Legg igjen en TODO om å se på ytelse i Opplysninger
Browse files Browse the repository at this point in the history
Co-authored-by: Tonje Mjøvik Myran <[email protected]>
Co-authored-by: Geir André Lund <[email protected]>
Co-authored-by: Mette Wendy Lindberg Gulbrandsen <[email protected]>
  • Loading branch information
4 people committed Dec 18, 2024
1 parent 48f08a0 commit 4ac613c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Opplysninger private constructor(
) : LesbarOpplysninger {
private val opplysninger: MutableList<Opplysning<*>> = opplysninger.toMutableList()
private val basertPåOpplysninger: List<Opplysning<*>> = basertPå.flatMap { it.basertPåOpplysninger + it.opplysninger }.toList()

// TODO: Vi må se på om denne kan få bedre ytelse
private val alleOpplysninger: List<Opplysning<*>>
get() = (basertPåOpplysninger + opplysninger).filterNot { it.erErstattet }.filterNot { it.erFjernet }

Expand Down

0 comments on commit 4ac613c

Please sign in to comment.