jlelse's Blog

Thoughts, stories and ideas

2020-05-18


Published on in 💬 Micro

Yesterday I wrote about a new “blog feature” showing below a post places on this blog where the post was mentioned. Unfortunately this has a high complexity and is not very fast. Today I tried (and managed) to improve the algorithm so that the complexity is just O(n). However, the code does not work as I expected it to, because Hugo does not provide a way to use global variables.

View

Jan-Lukas Else