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
I have list of dictionaries 150000 size.
looping through this netref list on client side very slow.
with using multiprocessing.Pool() performance is better, but very slow too:
without netref time is 25 seconds (with come logic in loop)
with netref time is 271 seconds (wth same logic in loop)
What can be done to increase speed?
The text was updated successfully, but these errors were encountered:
This is a little tricky because there are a few approaches. The most performant choice would be to transfer the dictionaries as a brine-able type (e.g. json.dumps the whole list to string and send that). The most likely problem is that you have to construct a large number of netrefs and intrinsically send stuff many times. Without knowing your design requirements, it is not easy to propose the best solution for you.
I could see if there is an "easy" win in optimizing the protocol—things that could be cached better. However, having an example to mock types and any nesting of objects you are doing would be helpful.
comrumino
added
Question
Issue is a result of unclear documentation or lack of documentation
To Start
Description reviewed and a maintainer needs "to start" triage
labels
Jun 27, 2023
Thank you for answer.
Im resolve the problem with use copy.deepcopy on client side.
Timing of this - 2 seconds, and then loop over default list of dicts)
comrumino
added
Done
The issue discussion is exhausted and is closed w/ comment
and removed
To Start
Description reviewed and a maintainer needs "to start" triage
labels
Jul 12, 2023
I have list of dictionaries 150000 size.
looping through this netref list on client side very slow.
with using multiprocessing.Pool() performance is better, but very slow too:
What can be done to increase speed?
The text was updated successfully, but these errors were encountered: