Hi, > To prevent from allocating memory every time I have to append value which > in real time process it slow down because the computer jas to find memory > location everytime.
Could you show your code? It seems that resize() isn't a good use case for it. > Another question, the gconstpointer is the buffer of bytes righy? Right. gconstpointer is a typedef of "const void *": https://developer.gnome.org/glib/stable/glib-Basic-Types.html#gconstpointer Thanks, -- kou In <CACKQ_V2=78wefxfroribp192cxvmb+yqx-oojni5ma1bzyn...@mail.gmail.com> "Re: Builder.resize in c" on Wed, 6 May 2020 23:11:32 +0200, swizz one <[email protected]> wrote: > To prevent from allocating memory every time I have to append value which > in real time process it slow down because the computer jas to find memory > location everytime. > Another question, the gconstpointer is the buffer of bytes righy? > Thank you very much. > > On Wed, May 6, 2020, 23:00 Sutou Kouhei <[email protected]> wrote: > >> Hi, >> >> In <cackq_v0cfs5q9jnjfo-ng1zeznc2hgavqdtyoj8rqrndzbg...@mail.gmail.com> >> "Builder.resize in c" on Wed, 6 May 2020 08:53:50 +0200, >> swizz one <[email protected]> wrote: >> >> > Is there an api similar to builder.resize in c to fix builder length? >> >> "build.resize" mentions arrow::ArrayBuilder::Resize() in >> C++, right? Could you stop abbreviating words as much as >> possible to avoid misunderstandings? >> >> We don't have a C binding of arrow::ArrayBuilder::Resize() >> yet. I'll add it later but could you show your use case? Why >> do you need to fix builder length? >> >> >> Thanks, >> -- >> kou >>
