B
B
bQ12019-09-03 15:28:03
Django
bQ1, 2019-09-03 15:28:03

Is there any difference in processing speed of python code?

If the difference is in the speed of code processing, if I import
1) from apps.test import modelsand then select the desired model from models in the code models.Post
2) I import only the desired model from apps.test.models import Postand then immediately use it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2019-09-03
@bQ1

There is a difference in favor of the second option, but by asking this question, you spent, say, 1000 times more time (I don’t know exactly how much, but we are talking about large numbers) than you will save on this knowledge for a lifetime.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question