Optimize frame cache by realloc'ing the smallest frame when the cache is full.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 31 Jul 2008 19:03:41 +0000 (19:03 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 31 Jul 2008 19:03:41 +0000 (19:03 +0000)
commitb89ecf2407de8107b6fc52636760620de51acd71
treeb0895c3e3dde4fae253515f9234c6a66693b162a
parent8adc6fb4ea430be3277ba0463512a29db3bf0b3f
Optimize frame cache by realloc'ing the smallest frame when the cache is full.
This ensures that we don't just keep a cache of tiny frames, continually doing
an alloc/free for each data frame, thus negating the point of having a cache.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/iax2-parser.c