add TempSkippedNodesPool

This commit is contained in:
WJQSERVER 2025-12-14 23:16:29 +08:00
parent 9cfc82a347
commit 60b2936eff
2 changed files with 23 additions and 3 deletions

View file

@ -89,7 +89,7 @@ func (c *Context) reset(w http.ResponseWriter, req *http.Request) {
if cap(c.Params) > 0 {
c.Params = c.Params[:0]
} else {
c.Params = make(Params, 0, 5)
c.Params = make(Params, 0, c.engine.maxParams)
}
c.handlers = nil
c.index = -1 // 初始为 -1`Next()` 将其设置为 0