Go - lazy initialized by sync.Once


Ex. sync.Once.Do
Can code "loadHeavyOnce everytime before read the variable", it will be executed once actually.


沒有留言:

張貼留言

Lessons Learned While Benchmarking vLLM with GPU

Recently, I benchmarked vLLM on a GPU to better understand how much throughput can realistically be expected in an LLM serving setup. One ...