Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Benchmark heatmap algorithm #1257

Open
4 of 6 tasks
chr-schr opened this issue Apr 8, 2024 · 0 comments · May be fixed by #1258
Open
4 of 6 tasks

Benchmark heatmap algorithm #1257

chr-schr opened this issue Apr 8, 2024 · 0 comments · May be fixed by #1258
Assignees

Comments

@chr-schr
Copy link
Contributor

chr-schr commented Apr 8, 2024

Tasks

  • Benchmark heatmap algorithm with 10 / 100 / 1000 shadings
  • Profile heatmap SQL function with plprofiler
  • Add and benchmark variations
    • v1
    • v2
  • add README.md

Implemented:

  • v1: Fetch plant relations once
    • => Big improvement for plant relationship score calculation
  • v2: Inline everything (because PL/pgSQL functions are "optimization fences")
    • little or negative effect for larger maps; some improvements for smaller maps
    • terrible maintainability

Other ideas:

  • Hard cutoff of effect after some distance (needs discussion)
    • Effect of plant relationships decreases quadratically
  • Return bad values early (needs discussion)
    • e.g. really bad shading cannot be improved with good companions and vice versa
    • may become even more important later on, when more layers are added to the heatmap
@chr-schr chr-schr linked a pull request Apr 8, 2024 that will close this issue
27 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Current Sprint
Development

Successfully merging a pull request may close this issue.

1 participant