AccessLogFilter simple date format reduce instance creation
AcceLogFilter message creation and last and current check was performing by each time simple date formate object creation. In this version of code I have use the ThreadLocal for each thread wise to create simple date format object instead of each call.
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
- [ ] I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 2.7.0
- Operating System version: xxx
- Java version: xxx
Steps to reproduce this issue
- xxx
- xxx
- xxx
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
What do you expected from the above steps?
Actual Result
What actually happens? AcceLogFilter message creation and last and current check was performing by each time simple date formate object creation. In this version of code I have use the ThreadLocal for each thread wise to create simple date format object instead of each call. If there is an exception, please attach the exception trace:
Just put your stack trace here!
Hi, I leave some comments, would u pls check it? :)
Hi, I leave some comments, would u pls check it? :)
Thanks, I will.