> I'm afraid you failed to give enough informations about your > "intensivecomputation" (ie: what kind ofcomputation, what input data > does it requires, what does it outputs, is it mostly IO bound or cpu > bound or else, etc), nor about the expected load. According to these > informations, answers can range from "just call the function directly" > to "you'll obviously need a cluster" - which of course makes a big > difference.
The computationally intensive function takes a string as an input, and generates a string of XML as the output. It does not rely on any additional data. The input string represents a problem space to be searched, and the output is the solution, or an indication that no solution is possible. It's not really a "number-crunching" problem, but more like a breadth-first search of a large tree. So no I/O. Just CPU and memory intensive. I understand how picking the right data structures and algorithms impacts performance. I am predicting it will still take about 4-5 minutes to generate the solution. Once the solution is generated, it will be permanently stored in the database. Future queries to solve the same problem will first consult the database to see if it has already been solved. I'd like to allow for the possiblity of, say, 100 users using this service at a time. I'd be using a Django webhosting service, specifically webfaction, so I'm somewhat restricted in terms of resources, and what can be installed. I have no idea if they have psyco as an option. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---