On Sat, Apr 30, 2011 at 06:16:52PM +0200, Guillaume Rousse wrote:
> commit f124ca1eff608b6a8dcc4ebb2cf1bc6b9e7a52d9
> Author: Gonéri Le Bouder <[email protected]>
> Date:   Thu Apr 28 16:43:28 2011 +0200
 
> This doesn't "fix" anything, this just log items with unknown attributes
> added to the inventory (which is indeed useful).
I got some key missing in the XML without error messages. That's the
reason why I changed the list to use to get the $field. I think the 
debug message is useful here. Think to it I had been able to spot some
issues.

> But this also change
> the semantic of the function, by allowing undefined values to slip in
> (they were filtered out previously by the removed line),
Yes I missed that.

> and this is
> considerably slower, by traversing the full list of allowed attributes
> for each attribute of each item added to the inventory...
> The correct way to conduct this kind of repeated lookup is to use an
> hash instead.
Yes, your patch 0dc5ed767789bb5ce3b27e2764e66cdc6b95059a is much better.

Best regards,

      Gonéri Le Bouder

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel

Répondre à