Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] Avoid parsing field name twice when matching named instruction in get_json_object #2413

Open
ttnghia opened this issue Sep 19, 2024 · 0 comments

Comments

@ttnghia
Copy link
Collaborator

ttnghia commented Sep 19, 2024

Currently, in get_json_object kernel, each field name is parsed once to verify its validity, then it is parsed again to check if it is matched with the given named instruction. That is inefficient especially if we have long field names.

We can do better by optimizing this code path, parsing the field names only once. That means string validation and name matching can be executed together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants