<div dir="ltr">Attila, <br><br>While I understand and respect your opinion, I must disagree. Through practical examples, it has become evident that thread-per-core architecture and asynchronous IO are incredibly beneficial in database development. These techniques are used in ScyllaDb and their SeaStart framework (written in C) <a href="https://github.com/scylladb/seastar">https://github.com/scylladb/seastar</a>, and are demonstrated in a project I took part in myself <a href="https://www.datadoghq.com/blog/engineering/introducing-glommio/">https://www.datadoghq.com/blog/engineering/introducing-glommio/</a>, <a href="https://github.com/DataDog/glommio">https://github.com/DataDog/glommio</a> (written in Rust). The results have been quite noticeable in practice.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 17, 2023 at 1:12 PM Attila Kelemen <<a href="mailto:attila.kelemen85@gmail.com">attila.kelemen85@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm not sure where you want to improve performance. Suppose we could create multiple virtual thread groups (each with an arbitrary number of carrier threads specified at group creation time). Assuming you have N cores, you could create N such groups with a single carrier thread each (then you somehow pin that carrier thread to a given core). Now you could execute virtual threads on a given core, but then you seem to lose most of the advantages, because virtual threads (even if they are running on the same core) are concurrent, so you can't really avoid synchronization at this point. Not to mention that you will get the overhead of virtual thread scheduling. I think if you really want some very low level optimization, then you probably have to use platform threads instead of virtual threads, and then write your tightly optimized code there.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Andrii Lomakin <<a href="mailto:lomakin.andrey@gmail.com" target="_blank">lomakin.andrey@gmail.com</a>> ezt írta (időpont: 2023. jún. 17., Szo, 11:29):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Yes, that is what I intended to say. <div>I apologize for any confusion. Is there a plan to incorporate this feature in the future?<br></div></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div></div></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards,<br>Andrii Lomakin.<br><br></div></div></div></div>