We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
First, thanks for the library. I want to cache the compiled expression and use it concurrently across threads. Is this possible?
See this feature in the .Net version. https://github.com/mikhail-barg/jsonata.net.native
Thanks
The text was updated successfully, but these errors were encountered:
i've checked for you and no it is not
passing a mutex or semaphore wrapper around it will enable you to use it concurrently although slower
Sorry, something went wrong.
package racechecker import ( "testing" "github.com/blues/jsonata-go" ) func TestRace(t *testing.T) { jsnt := replaceQuotesAndCommentsInPaths("$$") e := jsonata.MustCompile(jsnt) for i := 0; i < 500; i++ { go func() { e = jsonata.MustCompile("$$") _, _ = e.Eval("{}") }() } }
thanks Tom for the information, appreciate it.
No branches or pull requests
Hi,
First, thanks for the library. I want to cache the compiled expression and use it concurrently across threads. Is this possible?
See this feature in the .Net version. https://github.com/mikhail-barg/jsonata.net.native
Thanks
The text was updated successfully, but these errors were encountered: