New answers tagged python
0
votes
How to test for performance regression?
Ewan has described good practices for software benchmarking.
I would recommend looking up algorithm engineering for more information on how to do this effectively.
Choose the hardware evaluation ...
3
votes
How to test for performance regression?
If you just want to make sure the algorithm does not show up quadratic run time behaviour, and you know the basic constant startup time is almost negligible, then you can simply
run the code twice, ...
4
votes
How to test for performance regression?
The catch all general performance test is to run on the same hardware as live and ramp up a representative-of-live load until the app crashes or tops out.
This catches all sorts of edge cases and the ...
1
vote
Accepted
Best practice when declaring imports with different execution contexts in python?
That relative imports work differently depending on whether you are in a package context or not is one the 'features' of Python that annoys me and I have never really understood the need or reason for ...
0
votes
How to structure python modules/packages according to dependecy inversion
No it's all right when subpackages depend on higher modules or packages depend on subpackages. The circular import problem not related to that. It can appear even if files have the same nesting level.
...
Top 50 recent answers are included
Related Tags
python × 2025design × 157
object-oriented × 155
design-patterns × 132
python-3.x × 98
django × 83
java × 76
coding-style × 76
architecture × 68
unit-testing × 67
algorithms × 64
object-oriented-design × 60
programming-languages × 58
javascript × 56
c++ × 55
programming-practices × 53
testing × 41
web-applications × 41
web-development × 39
exceptions × 38
php × 37
functions × 35
c × 34
database × 33
class × 33