Skip to content

Would it be useful for ryp to spawn a dedicated thread for R work? #10

@jobrachem

Description

@jobrachem

Hi @Wainberg, first of all: Thank you very much for developing ryp and making it publicly available. We have been using it in https://github.com/liesel-devs/liesel_gam for a few months now and appreciate it very much.

One issue that we have been dealing with is the single-thread enforcement (see liesel-devs/liesel_gam#54), because our library also uses jax, which does a lot of multithreading -- so we do not have full control about which thread calls ryp out of the box. We have solved the issue by explicitly moving all R work in our library into a dedicated R thread, which is created when importing the package. We then wrap and re-export the three ryp core functions so they always run in this thread.

We were wondering: would a similar solution maybe be something that is interesting for ryp in general? Maybe as an opt-in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions