-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Implement reallocation of SerializedData in DDSCache. This closes memory leak of receive buffers. * Add timed garbage collection to whole DDSCache. This is to force release of receive buffers from topics that rarely get new samples. * Reduce Timer memory consumption. The default config of a single mio-0.6 Timer consumes over a megabyte of memory. Allocate new Timers with much smaller event buffers. * fmt * Add missing datafrag AssemblyBuffer garbage collection.
- Loading branch information
Showing
17 changed files
with
196 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,6 +162,7 @@ | |
clippy::option_map_unit_fn, | ||
)] | ||
|
||
mod polling; | ||
#[macro_use] | ||
mod serialization_test; | ||
#[macro_use] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Currently, just helpers for mio library | ||
|
||
// TODO: Expand this to become an iternal API for polling operations: | ||
// * sockets (send/recv) | ||
// * timers | ||
// * inter-thread channels | ||
// | ||
// Then we cold implement them either on top of mio-0.6, mio-0.8 or something | ||
// else | ||
|
||
use mio_extras::{timer, timer::Timer}; | ||
|
||
// The default timer has 256 timer wheel slots and capacity | ||
// ("Max number of timeouts that can be in flight at a given time") of 65536. | ||
// This seems to take up a lot of memory. | ||
// Additionally, each timer creates its own background thread, which also takes | ||
// up resources, but changing that would be a major change. | ||
pub fn new_simple_timer<E>() -> Timer<E> { | ||
timer::Builder::default().num_slots(4).capacity(2).build() | ||
} |
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.