Rust query modules with parallelisation #328
Labels
community
community
Effort - High
Effort - High
feature
feature
Frequency - Monthly
Frequency - Monthly
lang: rust
Issue on Rust codebase
Priority - Later
Priority - Later
Reach - VeryFew
Reach - VeryFew
Severity - S3
Severity - S3
Hello,
I've been trying to develop a query module in rust that tries to parallelize some loops using the rayon library. The parallelization loops involve accessing nodes and edges. However, I get this error :
G cannot be shared between threads
safely where G is a MemgraphGraph object. I've seen that some of the query modules in C++ have parallelisation, but I haven't been able to find anything for rust.Here is some code to reproduce this.
Cargo.toml
The src folder contains these files:
lib.rs
example.rs
Any help on how to move this forward would be great.
The text was updated successfully, but these errors were encountered: