mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
Optimize session event generation and data handling for improved performance
- Refactored the session event generation function to enhance speed and reduce memory usage. - Implemented pre-allocation of arrays and caching of session data to streamline event creation. - Simplified session data generation using pre-generated arrays for faster random selection of parameters. - Enhanced timestamp generation logic to reflect realistic traffic patterns, improving event accuracy. - Adjusted batch processing for event handling to optimize memory management and throughput.
This commit is contained in:
parent
ad2a01eec9
commit
5cc4e08f80
1 changed files with 484 additions and 752 deletions
1236
mockdata/index.js
1236
mockdata/index.js
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue