datascript

Ben Sless 2022-10-14T09:21:13.779019Z

doing another round of poking at performance, this time around recursive rules, managed to speed up by ~ 2.5x

Ben Sless 2022-10-17T11:53:31.978569Z

Patch ready https://github.com/tonsky/datascript/pull/438

Niki 2022-10-17T16:38:20.208199Z

Thanks! I’ll take a look soon

Lone Ranger 2022-10-14T14:03:10.615239Z

Can you share queries or examples? I'm not sure I've ever worked with recursive rules.

Lone Ranger 2022-10-14T15:58:24.082029Z

Nice, thanks!

👍 2
Niki 2022-10-14T23:46:13.163069Z

Dope! I remember recursive a probably the most messy and least optimized part of all this

Ben Sless 2022-10-15T04:50:38.225699Z

I'll probably have a patch ready today evening One thing I didn't figure out yet, but I have an idea, is tuple keys. It's more efficient to use a nested map than complex keys. Should dramatically improve that use case