[Gluster-devel] [RFC ] dictionary optimizations

Jeff Darcy jdarcy at redhat.com
Fri Sep 6 16:04:29 UTC 2013


On 09/02/2013 10:24 AM, Xavier Hernandez wrote:
> * Implement dict_foreach() as a macro (similar to kernel's list_for_each()).

FWIW, a version of dict_foreach_inline is included as part of

	http://review.gluster.org/#/c/5846/

I'm certainly not volunteering to convert existing uses of dict_foreach to use 
this, because that's a lot of tedious code motion for uncertain benefit, but at 
least it provides a way for new code to iterate over the contents of a dict 
inline where that seems natural (as in the gf_authenticate case that inspired it).





More information about the Gluster-devel mailing list