@Janekdererste That worked better than I expected. The trickiest part was the one with the self reference and Pin. It actually worked for the small test cases with raw pointers, but the Berlin scenario crashed. I think, some relevant structs were moved under the hood. Pin prevents those moves. With Pin, Berlin scenario works and is as fast as before.
The other parts of the modularization should be as dicussed 🙂
@Janekdererste That worked better than I expected. The trickiest part was the one with the self reference and
Pin
. It actually worked for the small test cases with raw pointers, but the Berlin scenario crashed. I think, some relevant structs were moved under the hood.Pin
prevents those moves. WithPin
, Berlin scenario works and is as fast as before. The other parts of the modularization should be as dicussed 🙂