-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Field Level Encryption
What is the feature/improvement you would like?
This idea was brought up in https://mongodb.slack.com/archives/CFPHLTRMK/p1659640553564849 for the Rust driver, but would be interesting for the Node.js driver as well.
The most likely implementaion would be to outsource some libmongocrypt context calls to the libuv thread pool. This would require moving implementation of the crypto hooks to C++.
What use case would this feature/improvement enable?
This would increase performance by blocking the event loop for shorter amounts of time (and by skipping JS ⟷ C++ boundary crossings).