Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Performance: Run HTTP and TCP Analyses in Parallel #49

Open
biandratti opened this issue Jan 1, 2025 · 0 comments
Open

Optimize Performance: Run HTTP and TCP Analyses in Parallel #49

biandratti opened this issue Jan 1, 2025 · 0 comments
Milestone

Comments

@biandratti
Copy link
Owner

Description:
Currently, the process_ipv6 and process_ipv4 functions performs HTTP and TCP analyses sequentially. This can lead to performance bottlenecks, especially under high load when processing multiple packets. By running these analyses in parallel, we could significantly improve the overall performance.

Proposed Solution
Run the HTTP and TCP analyses in parallel using threads. Here’s a high-level plan:

  1. Spawn two threads:
  • One for processing HTTP data.
  • One for processing TCP data.
  1. Use thread-safe data structures like Arc<Mutex<>> for shared resources (tcp_cache and http_cache).
  2. Combine the results of both threads once they complete.
@biandratti biandratti added this to the 0.1.0 milestone Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant