Skip to content

Is there a fast way to search JSON keys? #4482

Closed Answered by SheepChef
SheepChef asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, I mapped the JSON mannually in C++, using

map<string,vector<string>> = {{"a",{"x","y","z"}}, ...}

it turns out that even if I use such a hard-coded map, the performance is totally not improved.

So, obviously, the problem has nothing to do with JSON lib, and I am closing the quesion.

Such a weird problem, I literally have no idea what caused it.

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@SheepChef
Comment options

@nlohmann
Comment options

@SheepChef
Comment options

Comment options

You must be logged in to vote
2 replies
@SheepChef
Comment options

@SheepChef
Comment options

Comment options

You must be logged in to vote
3 replies
@SheepChef
Comment options

@nlohmann
Comment options

@SheepChef
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by SheepChef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants