You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example we create a list where the type of its content can change based on the input of the user, in this case the user can choose between 'float' and 'int'.
Imagining this is a more complex operation, does mypyc compile both functions using the different optimizations made for floats and integers that are explained in the documentaiton?
And if so, can overloading be used to optimize methods that may return multiple types?
If the result of this question is yes, then it should be included in the documentation along with other tips and tricks for optimization
The text was updated successfully, but these errors were encountered:
As the title says, are overloaded methods treated differently when compiled with mypyc?
Example:
In this example we create a list where the type of its content can change based on the input of the user, in this case the user can choose between 'float' and 'int'.
Imagining this is a more complex operation, does mypyc compile both functions using the different optimizations made for floats and integers that are explained in the documentaiton?
And if so, can overloading be used to optimize methods that may return multiple types?
If the result of this question is yes, then it should be included in the documentation along with other tips and tricks for optimization
The text was updated successfully, but these errors were encountered: