Re: [PATCH v2] libfcoe: Save some memory and optimize name lookups

2012-12-17 Thread Neil Horman
On Fri, Dec 14, 2012 at 02:02:18PM -0800, Robert Love wrote: Instead of creating a structure with an enum and a pointer to a string, simply allocate an array of strings and use the enum values for the indicies. This means that we do not need to iterate through the list of entries when

[PATCH v2] libfcoe: Save some memory and optimize name lookups

2012-12-14 Thread Robert Love
Instead of creating a structure with an enum and a pointer to a string, simply allocate an array of strings and use the enum values for the indicies. This means that we do not need to iterate through the list of entries when looking up a string name by its enum key. This will also help with a