I am using websocket and JSON as data stucture . whenever i use the JSON.PARSE the render freeze for a while . I try to do the parsing in a new thread but seems like there is no difference . Is there something I did wrong? or JSON.parse is very intensive . I try only recieving it once in a second . It cause a jitter.

{"subscriptionId":13,"errorCode":0,"errorMsg":null,"data":{"enabled":[[1626087708043,"false"]],"temperature":[[1626087708043,"47.2"]]},"latestValues":{"temperature":1626087708043,"enabled":1626087708043}}

I don't see why JSON.parse() would be that slow. Can you reproduce this with global scope parse_json()? Also, try using a C++ profiler with a debug build to confirm whether JSON parsing is actually the bottleneck.

Yes I did when remove the JSON.parse the there is no freeze and when i have it it just freeze whenever the it is called. the Parse_json is the same . everytime the it is call the frame time goes up and he frame freeze a little

I have discover that i do the parse ont he on_data function of a websocket event . and ti freeze happen . if I process the Json file in _process function there is no freeze . anyone tell me why?

Is it possible that the code loops some how when processing in the websocket event?