[asterisk-dev] kpfleming: branch 1.4 r132872 - in /branches/1.4: include/asterisk/ main/
Russell Bryant
russell at digium.com
Wed Jul 23 10:49:47 CDT 2008
SVN commits to the Digium repositories wrote:
> Author: kpfleming
> Date: Wed Jul 23 06:52:18 2008
> New Revision: 132872
>
> URL: http://svn.digium.com/view/asterisk?view=rev&rev=132872
> Log:
> minor optimization for stringfields: when a field is being set to a larger value than it currently contains and it happens to be the most recent field allocated from the currentl pool, it is possible to 'grow' it without having to waste the space it is currently using (or potentially even allocate a new pool)
>
> Modified:
> branches/1.4/include/asterisk/stringfields.h
> branches/1.4/main/utils.c
>
> Modified: branches/1.4/include/asterisk/stringfields.h
> URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/stringfields.h?view=diff&rev=132872&r1=132871&r2=132872
> ==============================================================================
> --- branches/1.4/include/asterisk/stringfields.h (original)
> +++ branches/1.4/include/asterisk/stringfields.h Wed Jul 23 06:52:18 2008
> @@ -123,6 +123,7 @@
> size_t size; /*!< the total size of the current pool */
> size_t space; /*!< the space available in the current pool */
> size_t used; /*!< the space used in the current pool */
> + ast_string_field last_alloc; /*!< the last field allocated */
> };
This breaks ABI, doesn't it?
--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
More information about the asterisk-dev
mailing list