Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multibatch multithreaded parsing #19

Open
shubhamugare opened this issue Jan 29, 2024 · 2 comments
Open

Support multibatch multithreaded parsing #19

shubhamugare opened this issue Jan 29, 2024 · 2 comments
Assignees

Comments

@shubhamugare
Copy link
Collaborator

shubhamugare commented Jan 29, 2024

If we are parsing multiple partial codes the parsers currently run sequentially in a single thread, this should be much faster parallel in multiple threads. Example Options

@victbr
Copy link

victbr commented Aug 21, 2024

the second link says that we should use asyncio or threading only if the program is io_bound. I wonder if multithread benefit the parsing. Using multiprocess, I met the problem that if we use spawn as start method, process init takes a long time; but fork cannot be compatible with cuda environment, is there any advice? thx!

upd: using other language without GIL might be a solution?

@shubhamugare
Copy link
Collaborator Author

Hi @victbr,

Yes, you are right, I think using other languages like Rust without GIL is probably the best solution for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants