Understand the mechanics of dynamic dispatch implementation in CPython
Thanks for digging into this for us! This isn’t something I would do myself.
Ok, I've calculated how many lines of C code python need for a+b.
Just to run empty file CPython uses 33241 lines of c code
For file which contains 4+5 34261 lines of code
And file a=4 \n b=5 \n a+b is 34724 lines of code
I wrote an article about how exactly I got these values.
https://medium.com/@idimus/so-how-many-lines-of-c-it-takes-to-execute-a-b-in-python-595f2d5abb8e
one of the most interesting topics in software, very good explanation. thanks
Thanks, Tolga!
Thanks for digging into this for us! This isn’t something I would do myself.
Ok, I've calculated how many lines of C code python need for a+b.
Just to run empty file CPython uses 33241 lines of c code
For file which contains 4+5 34261 lines of code
And file a=4 \n b=5 \n a+b is 34724 lines of code
I wrote an article about how exactly I got these values.
https://medium.com/@idimus/so-how-many-lines-of-c-it-takes-to-execute-a-b-in-python-595f2d5abb8e
one of the most interesting topics in software, very good explanation. thanks
Thanks, Tolga!