diff options
author | Ben Pfaff <blp@nicira.com> | 2011-03-25 13:20:35 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-03-31 16:42:01 -0700 |
commit | 53d046612df6c88ad8b02c8e99bbfb6e45fe2326 (patch) | |
tree | 7f9eb154c9cd0a5533ce886482a1f98f862137cc /lib/ovsdb-parser.h | |
parent | 19993ef3caac9964c2bef6e31fc8699c4f4b53c8 (diff) |
ovsdb-parser: Use sset instead of svec for detecting unused members.
Should be slightly cheaper than sorting a list (O(n) vs. O(n lg n)).
Diffstat (limited to 'lib/ovsdb-parser.h')
-rw-r--r-- | lib/ovsdb-parser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ovsdb-parser.h b/lib/ovsdb-parser.h index d6270bb1..44586aa7 100644 --- a/lib/ovsdb-parser.h +++ b/lib/ovsdb-parser.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010 Nicira Networks +/* Copyright (c) 2009, 2010, 2011 Nicira Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,12 +19,12 @@ #include <stdbool.h> #include "compiler.h" #include "json.h" -#include "svec.h" +#include "sset.h" #include "util.h" struct ovsdb_parser { char *name; /* Used only in error messages. */ - struct svec used; /* Already-parsed names from 'object'. */ + struct sset used; /* Already-parsed names from 'object'. */ const struct json *json; /* JSON object being parsed. */ struct ovsdb_error *error; /* Error signaled, if any. */ }; |