Actions
Optimization #1037
closedOptimize TCP Option storage
Effort:
Difficulty:
Label:
Description
In looking into the size of Packet, I noticed that the TCP options are
stored as an array of MAX_OPTS, which is 40 to IPv4. Each Option
contains a pointer (8 bytes). It seems like it would be more efficient
to copy the options data into the structure rather than store a
pointer to the data.
It seems the array of opts serves 2 purposes:
1. store for easy O(1) retrieval
2. duplicate option checking
I agree it's wasting a lot of space, but it would probably be non-trivial to rewrite the parsers and the code that uses the info.
The stream engine uses some of the opts for example.
Updated by Ken Steele about 11 years ago
- Tracker changed from Bug to Optimization
Updated by Victor Julien over 9 years ago
- Target version changed from 3.0RC2 to 70
Updated by Victor Julien almost 9 years ago
- Status changed from New to Assigned
- Assignee changed from OISF Dev to Victor Julien
I have a branch in progress.
Updated by Victor Julien over 8 years ago
- Status changed from Assigned to Closed
- Target version changed from 70 to 3.1rc1
Actions