You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Bryan Call (JIRA)" <ji...@apache.org> on 2014/05/20 00:47:38 UTC

[jira] [Commented] (TS-2581) Add / modify APIs to allow easy freelist allocation of iobuffer's from C/C++ plugins

    [ https://issues.apache.org/jira/browse/TS-2581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002528#comment-14002528 ] 

Bryan Call commented on TS-2581:
--------------------------------

[~psudaemon]

If this wont go in the next week, please move it to the 5.1 release.

> Add / modify APIs to allow easy freelist allocation of iobuffer's from C/C++ plugins
> ------------------------------------------------------------------------------------
>
>                 Key: TS-2581
>                 URL: https://issues.apache.org/jira/browse/TS-2581
>             Project: Traffic Server
>          Issue Type: New Feature
>          Components: TS API
>            Reporter: Leif Hedstrom
>            Assignee: Phil Sorber
>              Labels: api-addition
>             Fix For: 5.0.0
>
>
> This would allow for efficient allocations in plugins, such that they can do an in-place new() on a chunk of memory (iobuffer). 
> The API / features should make it easy and possible to asks for an iobuffer of at least size <x>. It can return a bigger one, at which point, you'd waste some. But this allows us to reuse / repurpose the existing iobuffer allocation.
> Phil points out that there are existing iobuffer allocation APIs, so maybe something in conjunction with that is appropriate. I would like for this to be easy on the plugin user though, such that it's as simple as "malloc/free" chains.



--
This message was sent by Atlassian JIRA
(v6.2#6252)