-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cythonize (de)serialization methods and enable errors customization (#…
…235) Closures have been converted into classes with one method. They have been regrouped in modules called methods.py. Only methods modules are cythonized. Cythonization is made by generating a pyx file from the Python file. This approach doesn't require much adaptation to the Python code. Also, it allows optimizations like dynamic dispatch conversion to switch (Python code would have been dirty to with a lot of if-chains). As constraints validation has been completely refactored to be cythonized too, error customization has been added at the same time as it was simpler.
- Loading branch information
Showing
31 changed files
with
1,969 additions
and
867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,3 +106,6 @@ venv.bak/ | |
.idea | ||
__generated__ | ||
cov-* | ||
*.c | ||
*.pyx | ||
*.pxd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.