Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
financeaccount.zip
in the attachment,use the go tool pprof profile,will see parser.New() is too hot because of slice allocation.
Maybe, a object pool is proper.
What did you expect to see?
Reduce the overhead of make slice
What did you see instead?
parser.New() is too hot
What version of TiDB SQL Parser are you using?
master, all versions
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error. financeaccount.zip in the attachment,use the
go tool pprof profile
,will see parser.New() is too hot because of slice allocation. Maybe, a object pool is proper.What did you expect to see? Reduce the overhead of
make slice
What did you see instead? parser.New() is too hot
What version of TiDB SQL Parser are you using? master, all versions