prewarm_tls

Function prewarm_tls 

Source
pub fn prewarm_tls()
Expand description

Prewarm the TLS stack to speed up the first connection

Currently, this force-seeds the crypto provider (from aws_lc_rs), which on my system takes around 30-50ms according to samply, spent in tree_jitter_initialize_once. If we don’t call this function, then the initialization will happen much later, on a tokio runtime thread.