-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary object pools. Fixes and tuning (#47)
* Bytewise crc32 * Bump go-astikit to 0.30. Make crc32 generator. Remove old crc32 calculation func and corresponding tests/benchmarks. * Replace OpenFile with Create in crc32 generator. Some minor changes * Add pooling for packet slices and raw data payload. Replace map[uint16] with map[uint32] see runtime/map_fast32.go . Cut out mutexes. Make DemuxerData slices of known size. Bump GO to 1.19. Fix BenchmarkParsePSIData and BenchmarkDemuxer_NextData. Copy FirstPacket without payload to DemuxerData. * Move pools to separate file. Rollback to GO 1.13 * Comments and naming * Some formatting and esContexts map[uint32] * Remove packetSlice pool. Wrap tempPayload in object to reduce allocations. * Mark packetPool and programMap methods as Unlocked * Naming and comments * Naming --------- Co-authored-by: Danil Korymov <[email protected]>
- Loading branch information
Showing
12 changed files
with
153 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.