bors
c0bb3b98bb
Auto merge of #143290 - azhogin:azhogin/link-pub-async-impls, r=oli-obk
...
pub async fn impl is monomorphized when func itself is monomorphized
Implentation coroutine (`func::{closure#0}`) is monomorphized, when func itself is monomorphized.
Currently, when `pub async fn foo(..)` is exported from lib and used in several dependent crates, only 'header' function is monomorphized in the defining crate. 'header' function, returning coroutine object, is monomorphized, but the coroutine's poll function (which actually implements all the logic for the function) is not. In such situation, `func::{closure#0}` will be monomorphized in every dependency.
This PR adds monomorphization for `func::{closure#0}` (coroutine poll function), when func itself is monomorphized.
Simple test with one lib async function and ten dependent crates (executable) that use the function, shows 5-7% compilation time improvement (single-threaded).
2025-09-01 10:54:40 +00:00
..
2025-08-19 19:21:55 +00:00
2025-07-25 13:19:43 -07:00
2025-08-22 17:55:15 +00:00
2025-05-26 14:59:48 +02:00
2025-05-27 08:18:11 +00:00
2025-09-01 13:45:00 +07:00
2025-08-26 15:15:17 -06:00
2025-08-06 23:59:47 +00:00
2025-08-20 11:10:38 +02:00
2025-07-15 16:02:26 +00:00
2025-06-10 08:41:23 +00:00
2025-08-20 11:04:38 +02:00
2025-06-13 01:16:36 +02:00
2025-06-13 01:16:36 +02:00
2025-06-06 20:12:11 +00:00
2025-07-23 13:48:04 +02:00
2025-08-31 10:55:14 +08:00
2025-08-08 18:53:18 +00:00
2025-08-08 18:53:18 +00:00
2025-08-08 18:53:18 +00:00
2025-08-08 18:53:18 +00:00
2025-06-06 20:12:11 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-05-26 14:59:48 +02:00
2025-05-17 01:30:07 +09:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-31 17:38:28 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-15 16:02:26 +00:00
2025-07-01 16:26:57 +05:00
2025-07-01 16:26:57 +05:00
2025-06-23 21:30:56 +03:00
2025-06-23 21:30:56 +03:00
2025-08-22 17:55:15 +00:00
2025-08-22 17:55:15 +00:00
2025-08-22 17:55:15 +00:00
2025-08-22 17:55:15 +00:00
2025-08-22 17:55:15 +00:00
2025-07-29 10:32:15 +02:00
2025-05-26 14:59:48 +02:00
2025-05-26 14:59:48 +02:00
2025-05-26 14:59:48 +02:00
2025-07-31 17:31:51 +00:00
2025-07-31 17:31:51 +00:00
2025-07-29 10:32:15 +02:00
2025-08-20 11:10:38 +02:00
2025-08-20 11:10:38 +02:00
2025-08-20 11:10:38 +02:00
2025-07-31 17:31:51 +00:00
2025-06-06 20:12:11 +00:00
2025-08-22 17:55:15 +00:00
2025-08-13 14:10:19 +02:00
2025-08-10 02:21:48 +00:00
2025-05-26 14:59:48 +02:00
2025-05-26 14:59:48 +02:00
2025-05-26 14:59:48 +02:00
2025-05-26 14:59:48 +02:00
2025-06-06 20:12:11 +00:00
2025-06-13 01:16:36 +02:00
2025-06-13 01:16:36 +02:00