[okfn-labs] Blog post about PyBossa speedups
Daniel Lombraña González
teleyinex at gmail.com
Fri Dec 14 08:38:22 UTC 2012
I've added some comments on the Github issue and I would say that this is
the way to go!!! At the same time, yesterday I applied several caches the
to PyBossa framework and now the app seems to fly :-) I'm still working on
this, but if you load the front page from Crowdcrafting.org or
ForestWatchers.net/pybossa you will feel the difference.
We can keep the discussion in the Github issues.
On Thu, Dec 13, 2012 at 10:49 PM, Gregor Aisch <gregor.aisch at okfn.org>wrote:
> As far as I know it's not implemented in the example apps yet, but it's
> implemented in this app:
> I think making this the default is a great thing, but I would go one step
> further and improve the whole app development.
> As described in my post, there're essentially two hooks the user need to
> plug into: *loadTask* and *presentTask*. In loadTask, or more precisely,
> taskLoaded, the app gets a task object that has just been loaded (or
> pre-loaded) along with a deferred. Then you can load data from additional
> APIs or fetch some images, and as you're ready you resolve the deferred.
> Same with presentTask, in which you get a task and a deferred, update your
> UI, set your event handlers and eventually resolve the deferred as the user
> has come up with a solution.
> The entire rest of the magic should be handled by pybossa.js, without any
> line of code in user apps. pybossa.js would ensure that tasks are
> pre-loaded, that the url hash for the task is updated, the answers are
> submitted etc.
> Will forward this discussion to Github.
> Am 13.12.2012 um 22:33 schrieb Tom Morris <tfmorris at gmail.com>:
> On Thu, Dec 13, 2012 at 3:43 PM, Gregor Aisch <gregor.aisch at okfn.org>wrote:
>> Accidentally almost simultaneously with Stefan I pushed a blog post about
>> how to speed up PyBossa apps by pre-loading upcoming tasks while the user
>> is solving the current one.
> Background task loading should be the default. Is this implemented in the
> example apps so people who just do a simple minded copy get it?
> Other keys to fast and efficient working include:
> - Undo always available
> - Keyboard shortcuts (e.g. arrow keys) for all voting actions
> okfn-labs mailing list
> okfn-labs at lists.okfn.org
> Unsubscribe: http://lists.okfn.org/mailman/options/okfn-labs
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino PDF, HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the okfn-labs