I am running the Django development server, with multiple people using the website simultaneously. Each time my website is visited, there is a function that Django calls which is computationally expensive, and takes about a second to return. This means that currently, pages are loading very slowly if several people access the website at roughly the same time. This is because I assume that Django will not call this function if it is currently being processed from another user.
Here are some more specific details:
I am running Django on Windows Server 2012
The function itself computes a number of matrix transformations in NumPy
The function does not interact with the database at all, but it does load from the server's hard disk
So, I am wondering what the solution to this is, other than having a faster CPU?