You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this great package. I have a use case that would benefit from running multiple instances of figtree in different threads, and I noticed this note on the README.
TODO: modify ANN so that it no longer uses global variables (which prevents figtree from being called simultaneously in multiple threads)
Any chance this will happen? Alternatively, would you be able to direct me to the problem portions of code, so that I might attempt a modification myself?
Cheers
The text was updated successfully, but these errors were encountered:
I haven't needed this functionality since I added that TODO item, so it
is not something I am actively working on. From what I understand, the
ANN code (in the external/ann_1.1.1 directory) originally used global
variables for speed (removes one level of indirection in memory lookup).
One solution would be to pass along a structure containing the variables
of interest, so that each call to ANN reads/writes to its own set of
variables. While this is a simple modification, it would involve
touching much of the ANN code, something I had no good reason to do yet.
It is pretty easy to identify the global variables in the ANN code.
On 12/09/15 14:54, Zachary A Szpiech wrote:
Thanks for this great package. I have a use case that would benefit
from running multiple instances of figtree in different threads, and I
noticed this note on the README.
TODO: modify ANN so that it no longer uses global variables (which
prevents figtree from being called simultaneously in multiple threads)
Any chance this will happen? Alternatively, would you be able to
direct me to the problem portions of code, so that I might attempt a
modification myself?
Cheers
—
Reply to this email directly or view it on GitHub #3.
Thanks for this great package. I have a use case that would benefit from running multiple instances of figtree in different threads, and I noticed this note on the README.
Any chance this will happen? Alternatively, would you be able to direct me to the problem portions of code, so that I might attempt a modification myself?
Cheers
The text was updated successfully, but these errors were encountered: