change: cache loaded functions to improve performance

This commit is contained in:
debugtalk
2022-01-13 15:07:10 +08:00
parent 1c7f2f9834
commit c31d76b557
2 changed files with 8 additions and 2 deletions

View File

@@ -18,7 +18,8 @@ func newParser() *parser {
}
type parser struct {
plugin hrpPlugin // plugin is used to call functions
plugin hrpPlugin // plugin is used to call functions
cachedFunctions map[string]reflect.Value // cache loaded functions to improve performance
}
func buildURL(baseURL, stepURL string) string {