Skip to content

Commit 71dbb0a

Browse files
authored
Use std::unordered_set to store supported vocabularies (#501)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 74070b1 commit 71dbb0a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/compiler/default_compiler.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#include "default_compiler_draft6.h"
77
#include "default_compiler_draft7.h"
88

9-
#include <cassert> // assert
10-
#include <set> // std::set
11-
#include <string> // std::string
9+
#include <cassert> // assert
10+
#include <string> // std::string
11+
#include <unordered_set> // std::unordered_set
1212

1313
auto sourcemeta::blaze::default_schema_compiler(
1414
const sourcemeta::blaze::Context &context,
@@ -18,7 +18,7 @@ auto sourcemeta::blaze::default_schema_compiler(
1818
-> sourcemeta::blaze::Instructions {
1919
assert(!dynamic_context.keyword.empty());
2020

21-
static std::set<std::string> SUPPORTED_VOCABULARIES{
21+
static std::unordered_set<std::string> SUPPORTED_VOCABULARIES{
2222
"https://json-schema.org/draft/2020-12/vocab/core",
2323
"https://json-schema.org/draft/2020-12/vocab/applicator",
2424
"https://json-schema.org/draft/2020-12/vocab/validation",

0 commit comments

Comments
 (0)