Superskyyy opened a new issue, #10849: URL: https://github.com/apache/skywalking/issues/10849
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Refactoring the uuid generator shows a 30% thoroughput increase in small transactions. UUID in Python agent previously was implemented as a ID class that creates a new UUID1 instance every single time when requried, a huge number of uuids is costing large portion of CPU time. New method will replicate the Java agent logic and use a global PROCESSID (uuid4) + Timestamp + (1-9999) as the ids plus other python-specific optimizations. - [x] - UUID generation change - [ ] - Consider forking behavior that is different from Java applications - [ ] - Optimize other parts in the tracing core. ### Use case Reduce performance cost of introducing Python agent. This probably also leads to a new release along with several smaller enhancements. ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
