I cannot speak to the code running twi, but are using a unique_value
filter? The dynamic_options code use to completely lock up our galaxy
server for minutes at a time before I applied this optimization:

https://bitbucket.org/jmchilton/galaxy-central-dynamic-options-fix/changeset/e4856cc362d92f7857699c5be6cab1a75c29932f

It is only relevant if you are using a unique_value filter though.

-John

On Fri, Aug 24, 2012 at 11:07 AM, Mutlu Dogruel <mutludogr...@gmail.com> wrote:
> Hi,
>
> I wrote a script for dynamically populating a user form. It works but
> it's slow. When I checked the Galaxy log, I saw that the method called
> by my custom tool's xml is being run twice (the same debugging lines
> appear twice in the log, and that happens consistently). Is there any
> explanation for this? The script returns a list of strings fetched
> from a remote server. It's running a bit slow, taking up to 6 seconds,
> so it would be great if I can half that!
>
> For testing purposes, I wrote a dummy method that returns a few
> characters in a list of tuples. Again, my print statement in the
> Python script is called twice. Has anyone noticed such behaviour?
>
> Could it be related to this Galaxy bug:
> https://bitbucket.org/galaxy/galaxy-central/issue/491/data_column-parameter-bug-cannot-select
>
> The Galaxy script shown on that page says:
> "NOTE: This is wasteful since dynamic options and dataset collection
> happens twice (here and when generating HTML)."
>
> Thanks.
> Best regards,
> --
> Mutlu
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>
>   http://lists.bx.psu.edu/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Reply via email to