You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the use of regular expressions is one of the culprits. The one with the 'id' function is easy to replace, the other one I just disabled. This already saved 1 second.
I'm trying to replicate now, and my setup gives an execution time of 0.018 seconds for a list of 1000 ints. Can you share some more details, so I can try to get the same results?
Using decode_str to create a Python object from a CBOR message that contains a list with 1000 int elements takes more than 1.5 seconds!
Using
It seems the use of regular expressions is one of the culprits. The one with the 'id' function is easy to replace, the other one I just disabled. This already saved 1 second.
But still decoding should not take hundreds of ms. More investigation and fixes are needed.
The text was updated successfully, but these errors were encountered: