You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Jeevananthan-23 (via GitHub)" <gi...@apache.org> on 2023/08/24 10:43:07 UTC
[GitHub] [lucenenet] Jeevananthan-23 commented on issue #763: Support async task
Jeevananthan-23 commented on issue #763:
URL: https://github.com/apache/lucenenet/issues/763#issuecomment-1691442148
Hi @mikemccand / @NightOwl888, supporting async for **Lucene** really great idea because in recent-day talks about scalability, how to write high-performance code matters, and the landscape for search engines(Vector search engines) gradually increased. I feel that Lucene's legacy code base had many improvements over the period of time but lags with web-scale capability meaning that Lucene is not used in search engines like Google Search(BigTable)/Bing Search (RocksDb) [_That's a separate rant 🤣_].
Adding async/await in **Lucene(java)** by using _**Virtual Threads(in JDK21**_) is still in preview/beta and may be changed in the near future. Lucene(java) already implemented using the `ThreadPoolExector ` which is similar to `TaskScheduler` and uses ThreadPools to run the threads.
On the other hand, **Lucenenet(C#)** current code base lags behind compared to Lucene(java) V9.x.x. but `C#` is already very mature in the grade of supporting async/await from low-level APIs like **async I/O bound operations**. IMO we can implement and test the performance of **async operations in Lucenenet at first** and move to the Java version if virtual threads become stable.
_Note: Also will work on removing J2N overhead if possible_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org