streamly
streamly copied to clipboard
Fast chunked cross product
Experimental idea: Currently cross product style streams are slow because they work on a per element basis and it does not fuse. The cross product using unfolds is extremely fast because it fuses. A good way to make stream cross products fast is by using stream of arrays and perform cross product of arrays using unfolds. This could help in implementing a faster logic programming monad.