Memoize plugin invocations
This commit is contained in:
parent
88404e924b
commit
5df550f8e8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue