This PR primarily focuses on the following optimizations to the log-stream module:
-
Optimized Logging Process:
Improved the processing logic of log data to reduce unnecessary computations and processing steps.
Added comparison logic to detect changes in data within the request.
-
Data Change Comparison:
During the processing of log requests, added logic to compare the data before and after the request.
If the data remains unchanged throughout the request, the processing flow is terminated immediately, eliminating the need for subsequent operations.
-
Removal of Lock Usage:
Due to the addition of data change comparison logic, which ensures that no write operations are performed when data is unchanged, the previously used lock mechanism to prevent data races has been removed.
This not only simplifies the code logic but also improves processing performance.