Skip to content

Speed up protocol lookup in ndpi_get_proto_by_name#2867

Merged
IvanNardi merged 1 commit into
ntop:devfrom
0xA50C1A1:proto_by_name
Jun 5, 2025
Merged

Speed up protocol lookup in ndpi_get_proto_by_name#2867
IvanNardi merged 1 commit into
ntop:devfrom
0xA50C1A1:proto_by_name

Conversation

@0xA50C1A1

@0xA50C1A1 0xA50C1A1 commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

Please sign (check) the below before submitting the Pull Request:

Describe changes:

Prep for category/breed support (#2594) — optimized ndpi_get_proto_by_name()

  • Skips full strcasecmp if first chars don’t match
  • No behavior changes, just faster lookup

@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2025

Copy link
Copy Markdown

@IvanNardi IvanNardi merged commit f0c7c36 into ntop:dev Jun 5, 2025
30 of 31 checks passed
@0xA50C1A1 0xA50C1A1 deleted the proto_by_name branch June 5, 2025 11:39
IvanNardi pushed a commit that referenced this pull request Jun 5, 2025
Implements same optimization pattern as #2867
No behavior changes, just faster lookup
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

Successfully merging this pull request may close these issues.

2 participants