Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

2.0.0: major performance boost and other improvements#84

Discussion options

After 16 months of public beta and 8 beta versions, python-constraint 2 is ready for release 🎉
It brings major performance optimizations, an overhaul of the project structure, and automated testing and reporting.
This new version can be installed withpip install python-constraint.

Summary of major optimizations:

  • Cythonized the package and added typing
  • Added the (now default) OptimizedBacktracking solver based onPossible improvmeents #62
  • Added the MaxProd and MinProd constraints
  • Optimized the Function and MaxSum constraints
  • Wider choice of output formats (usegetSolutionsOrderedList orgetSolutionsAsListDict)
  • Overall optimization of common bottlenecks

In all, this results in a two- to three- orders of magnitude speedup over the old version.

Various engineering changes were made as well, including:

  • Split the codebase into multiple files for convenience
  • Achieved and requires test coverage of at least 80%
  • Switched fromsetup.py topyproject.toml
  • Added nox for local testing against all supported Python versions
  • Added ruff for code style testing
  • Dropped Python 3.4, 3.5, 3.6, 3.7, 3.8 support

For more extensive information on these changes, check#76 andhere


This discussion was created from the release2.0.0: major performance boost and other improvements.
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@fjwillemsen

[8]ページ先頭

©2009-2025 Movatter.jp