Skip to content

Optimise Aethel search code #46

@XanderVertegaal

Description

@XanderVertegaal

The search logic in AethelQueryView.get() works but is not fully optimized. Instead of doing this (in lines 106ff.)

  # Check whether we have already added this sample for this result
  existing_sample = next(
      (s for s in result.samples if s.name == sample.name),
      None,
  )

it is worth investigating if we can keep track of the sample earlier in the for loop.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions