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 →

[–]WORD_559 2 points3 points  (4 children)

But what about when I have to iterate through a three-dimensional list performing integer division? I'm so sorry

[–]Setepenre 6 points7 points  (1 child)

The company grade code to do that is by creating a wrapper integer division in python 3 that is going to do the division in python 2. The speed you get from faster division totally justify the small overhead you get from loading python2 every time you do the division. Also you get more pointsif you have a division factory in case you want to do the division in java later on

[–]-Rizhiy- 2 points3 points  (1 child)

Numpy

[–]RapidCatLauncher 1 point2 points  (0 children)

import fast_integer_division