]> git.meshlink.io Git - meshlink/commit
Avoid allocating packet buffers unnecessarily.
authorGuus Sliepen <guus@meshlink.io>
Sun, 29 Mar 2020 22:04:29 +0000 (00:04 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 29 Mar 2020 22:04:29 +0000 (00:04 +0200)
commit963c5055505f2fc117cd5efa06eaa02c9b2bf85d
tree612d720f1864e73bb96e81e40111beae87131ab0
parent7212e13585536500c61c458e6d55e723183e4a5b
Avoid allocating packet buffers unnecessarily.

Unless we have to queue a packet, we can avoid allocating and freeing
memory by keeping a permanently allocated packet buffer around.
src/meshlink.c
src/meshlink_internal.h
src/utcp