Re: [ovs-dev] [PATCH v2] json: Improve string parsing

2022-04-04 Thread Ilya Maximets
On 3/30/22 11:20, Dumitru Ceara wrote: > On 3/29/22 18:51, Rosemarie O'Riorden wrote: >> To parse a json string prior to this change, json_lex_input is called >> with each character of the string. If the character needs to be copied >> to the buffer, it is copied individually. This is an expensive

Re: [ovs-dev] [PATCH v2] json: Improve string parsing

2022-03-30 Thread Dumitru Ceara
On 3/29/22 18:51, Rosemarie O'Riorden wrote: > To parse a json string prior to this change, json_lex_input is called > with each character of the string. If the character needs to be copied > to the buffer, it is copied individually. This is an expensive > operation, as often there are multiple

[ovs-dev] [PATCH v2] json: Improve string parsing

2022-03-29 Thread Rosemarie O'Riorden
To parse a json string prior to this change, json_lex_input is called with each character of the string. If the character needs to be copied to the buffer, it is copied individually. This is an expensive operation, as often there are multiple characters in a row that need to be copied, and copying