Need help with code efficiency (day 15 AoC, part 1 and 2)

This page summarizes the projects mentioned and recommended in the original post on /r/elixir

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • AoC2021

    Advent of Code 2021 (by EragonpeerGynt)

  • Disclaimer: I am learning Elixir this year trough AoC so code quality is in a shape that could find a place on r/programinghorror I would like to ask with help optimising algorithm I made for solving today's (day 15, 2021) Advent of Code problem. I implemented Dijkstra's (I think) and first part already need 35+ seconds to get the resautls. This is the code I made but I don't know how to optimize it (Maps probably aren't the most efficient thing to use in code that goes that far into recursion), to reach some more normal execution times. I would like to not use 3rd party/external libraries if possible, but any help is appriciated.

  • libgraph

    A graph data structure library for Elixir projects

  • I was too lazy to implement Dijkstra's algorithm myself, so I used libgraph.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • AdventOfCode2021

  • I'm also doing this year's AoC in Elixir as a learning exercise, and I implemented a crude priority queue for today's task. Here's the code to give you an idea of how to implement it yourself: https://github.com/CallumHutchison/AdventOfCode2021/blob/master/lib/day15/PriorityQueue.ex

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Benchmark Your Elixir App's Performance with Benchee

    1 project | dev.to | 13 Sep 2022
  • Benchmarking

    1 project | /r/elixir | 5 Jun 2022
  • Elixir Today: Combining a List of Map via Specific Field

    2 projects | dev.to | 8 Apr 2022
  • Random strings in Elixir

    1 project | dev.to | 13 Mar 2021
  • Vector Search is Eating the Web

    1 project | dev.to | 30 Apr 2024