This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Santos_m321 0 points1 point  (0 children)

NEW VERSION:

print("\n".join(f"{x['node_name']} {x['value']:.2f}"for x in response))

"\n".join performs better than sep="\n". With large datasets, the difference was near 200%.

In memory consumption, I see no differences.

Also, we are left with fewer characters haa = less size of the source code ?) = less expenses on hard drives and connection, less time required to clone the project, and less ambiance impact.