Stacksafe spatial matching

Description

As proven by this:
https://gist.github.com/lukasz-golebiewski/fd5d211d1f1750885cb9b4dcc5a3891d

the spatial matcher can blow up with a StackOverflowException.

It's a non-deterministic failure in sbt, but a deterministic one in IntelliJ if the test is run with
`-Xss240k -XX:MaxJavaStackTraceDepth=10000 -Xmx1024m`

The fix will require a substantial refactoring of the effect stack (fusing it and using a stacksafe monad)
See

cc

Status

Assignee

Artur Gajowy

Reporter

Artur Gajowy

Components

Story Points

8

Labels

Sprint

Priority

High