tantan的博客

Notes, ideas, and observations

今天用 lighthouse 分析博客的性能,发现几个之前不了解的问题,记录一下。

#避免在主线程跑复杂 JS

Linux 将中断处理流程划分成两个部分,一个是 top half,另一个是 bottom half。

在执行 top half 时是关闭硬件中断的,即系统没办法响应后续的中断事件,因此应该保证 top half 尽可能短。

0%