Re: Should there be a default lockfile location for SerializeMixin?

2021-05-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > I guess this is true in a technical sense, but is it true in a noticeable > sense? Yes, having lots of processes vying for a lock isn't great, but I'd > be surprised if it adds up to very much. Am I wrong about this? Running the tests serially in a single process doesn't have the setup cost

Re: Should there be a default lockfile location for SerializeMixin?

2021-05-21 Thread 'Mike Lissner' via Django developers (Contributions to Django itself)
> you will degrade to *worse than single process* speed. I guess this is true in a technical sense, but is it true in a noticeable sense? Yes, having lots of processes vying for a lock isn't great, but I'd be surprised if it adds up to very much. Am I wrong about this? > This would silently

Re: Should there be a default lockfile location for SerializeMixin?

2021-05-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> 1. Should we tweak the docs to show something like the above, that would > make the solution there easier to just drop in? > I don't think so. Locking is a last resort and ruins performance - if used across your whole test suite you will degrade to *worse than single process* speed. You should

Should there be a default lockfile location for SerializeMixin?

2021-05-20 Thread 'Mike Lissner' via Django developers (Contributions to Django itself)
I spent the day today making the tests for my project run in parallel. As part of that, I had my first encounter with the SerializeMixin, which you can use in conjunction with the `--parallel` flag to ensure that certain tests don't run at the same time. It's neat, in theory: