Memoize plugin invocations

This commit is contained in:
Laurenz 2023-09-13 15:43:18 +02:00
parent 88404e924b
commit 5df550f8e8

View File

@ -195,6 +195,7 @@ impl Plugin {
}
/// Call the plugin function with the given `name`.
#[comemo::memoize]
pub fn call(&self, name: &str, args: Vec<Bytes>) -> StrResult<Bytes> {
// Find the function with the given name.
let func = self