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

[Feature Request]: Add python optimization (python -OO or -O) #3863

Open
3 tasks done
george0st opened this issue Jul 3, 2023 · 0 comments
Open
3 tasks done

[Feature Request]: Add python optimization (python -OO or -O) #3863

george0st opened this issue Jul 3, 2023 · 0 comments

Comments

@george0st
Copy link
Collaborator

Feature Type

  • Adding new functionality to MLRun

  • Changing existing functionality in MLRun

  • Removing existing functionality in MLRun

Problem Description

I saw that in case of project.deploy_function(fn), the deployment is without optimization, it means:

  • it is possible to use assert (debug mode enabled)
  • without setting python -O or python -OO

Feature Description

It will be useful to have ability to switch-on/off optimization something like use this setting for python execution (python -O or python -OO), see description from python --help

-O     : remove assert and __debug__-dependent statements; add .opt-1 before
         .pyc extension; also PYTHONOPTIMIZE=x

-OO    : do -O changes and also discard docstrings; add .opt-2 before
         .pyc extension

Alternative Solutions

keep current state

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant