On Tue, Oct 04, 2016 at 07:31:48PM +0000, Rodriguez Betancourt, Esteban wrote: > After profiling OVSDB insert performance it was found > that some significant portion of its time OVSDB is > calling the function json_clone. > > Also, the current usages of json_clone never modify the json, > just keeps it to prevent it to be freed. > > With that in mind the struct json, json_create, json_clone > and json_destroy were modified to keep a count of how many > references of the json struct are left. Only when that count > reaches zero the json struct is freed. > > The old "json_clone" function was renamed as "json_deep_clone".
The performance results are somewhat puzzling but I cannot argue with them. I applied this to master. Thank you! _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev