Re: [Openvpn-devel] [PATCHv2 7/7] Add gc_arena to struct argv to save allocations

2017-11-13 Thread David Sommerseth
On 12/11/17 09:34, Heiko Hund wrote: > With the private gc_arena we do not have to allocate the strings > found during parsing again, since we know the arena they are > allocated in is valid as long as the argv vector is. > > Signed-off-by: Heiko Hund > --- > src/openvpn/argv.c

[Openvpn-devel] [PATCHv2 7/7] Add gc_arena to struct argv to save allocations

2017-11-12 Thread Heiko Hund
With the private gc_arena we do not have to allocate the strings found during parsing again, since we know the arena they are allocated in is valid as long as the argv vector is. Signed-off-by: Heiko Hund --- src/openvpn/argv.c | 44 src/ope

[Openvpn-devel] [PATCHv2 7/7] Add gc_arena to struct argv to save allocations

2017-11-12 Thread Heiko Hund
With the private gc_arena we do not have to allocate the strings found during parsing again, since we know the arena they are allocated in is valid as long as the argv vector is. Signed-off-by: Heiko Hund --- src/openvpn/argv.c | 44 src/ope