Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mypyc] Optimize int()/float()/complex() on native classes #14450

Commits on Jan 15, 2023

  1. [mypyc] Optimize int()/float() on native classes

    int() and float() calls on native classes can simply call the associated
    dunder if the RInstance defines it, no need to load the type and call it.
    
    bool() calls were already optimized merely a few days ago, but there
    wasn't an IRbuild test verifying this so I added one.
    ichard26 committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    c094384 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. Add support for __complex__

    ichard26 committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    4d78e62 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    27e8d3f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7fcc1c4 View commit details
    Browse the repository at this point in the history
  4. Fix complex irbuild test

    ichard26 committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    522087f View commit details
    Browse the repository at this point in the history