Performance of python when passing big data as function parameter -


suppose have 2 python functions, function 1 , function 2.

function 1 call function 2 , parameter big data (e.g., dictionary 100 thousand elements).

i wondering if there performance differences between calling function 2 in function 1, means need pass big data parameter, , implementing function 2 in function 1 directly, means don't need pass big data parameter.

thanks.

ps: think key question how python pass parameter, value, or reference (pointer)?

edit: seems confused problem. how pass variable reference? answer.

python passes references-to-objects value. terminology controversial , ugly, there should no real performance difference.

check out these answers details ever want (hopefully).


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -