1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

don't create a new controller instance if it doesn't have struct dependencies and the fields length is 0 - 0.4MB/s difference from the raw handlers now.

Former-commit-id: f808291fe84bc2cdd83f60f62f8b3140204110a5
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-16 17:57:20 +02:00
parent 34664aa311
commit a25c0557de
4 changed files with 117 additions and 32 deletions

View File

@@ -231,7 +231,7 @@ func (p *methodParser) parsePathParam(path string, w string, funcArgPos int) (st
// so retry with the "funcArgPos" incremented.
//
// the "funcArgPos" will be updated to the caller as well
// because we return it as well.
// because we return it among the path and the error.
return p.parsePathParam(path, w, funcArgPos+1)
}
return "", 0, errors.New("invalid syntax for " + p.fn.Name)