Hi Pol, Thanks for getting back to me.
On Sun, Nov 13, 2011 at 4:50 PM, Pol <[email protected]> wrote: > Hi Brian, > > threadsafe is "true" There is a known issue where concurrent requests (enabled with threadsafe) can be much slower than non-concurrent requests, especially if the request is CPU-bound. You might want to set threadsafe to "false" and see if that fixes the problem. Cheers, Brian > Here's an example password_hash for an original 8 characters password: > > $2a$04$cbM2uHwDphIG3jFFRpq1mui5aVjevnDUwhvQ77S/WG/qvJMpiXAL6 > > On Nov 12, 6:58 pm, Brian Quinlan <[email protected]> wrote: >> Hi Pol, >> >> On Sun, Nov 13, 2011 at 1:48 PM, Pol <[email protected]> wrote: >> > Hi, >> >> > Since switching to 2.7 runtime, logging in tohttp://www.everpix.com >> > went from about a second to anywhere from 15s to 60s. I tracked it >> > down to this single password checking line: >> >> > from bcrypt import bcrypt >> > bcrypt.hashpw(password, self.password_hash) == self.password_hash >> >> What value are you using for "threadsafe" in your app.yaml? >> >> How large is self.password_hash? >> >> Cheers, >> Brian >> >> >> >> >> >> >> >> > This comes from "a native Python implementation of the py-bcrypt >> > package fromhttp://www.mindrot.org/projects/py-bcrypt/" grabbed from >> > here:https://github.com/erlichmen/py-bcrypt. >> >> > So what's happening here and how can we fix this? >> >> > Thanks, >> >> > - Pol >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Google App Engine" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
