06.09.2014 12:35, Bruce Mitchener kirjoitti: > On Sat, Sep 6, 2014 at 4:31 PM, Mauri Tikka <[email protected]> wrote: > >> Hi, >> >> I thought of implementing a dynamic allocation memory IO for the AVRO C >> library. >> >> has this already been done, btw? I've used 1.7.7 and I did not see this >> in JIRA. There was a mail discussion from a few years back, but I guess >> it did not proceed. >> > I had a pretty different memory allocation scheme working locally, but the > new value model replaced that code. > > What do you hope to gain from changing the current interface? Is there a > performance issue or a feature that you're missing? > > - Bruce >
This would be a backwards compatible change - adding a new initialisation function and a new IO type, in addition to the existing ones. A major motivation would be the dislike of fixed allocation of buffer space, especially when serving lots of small messages and the occasional big one. I am using AVRO to serialise the payload of RPC messages for a cluster of MMORPG servers and clients. However, now I realise that I could mark certain known message types as "big" ones and pre-allocate big buffers for just those messages, using the current interface. Perhaps I return to this dynamic memory idea only if I cannot get the current interface working for me. Thanks, I got helped within 5 minutes of signing to the mailing list :) - Mauri
