Back to Blog

성능에 대한 깨달음

힙에 할당하는 게 무조건 나쁜 게 아니라는 걸 깨달았다. 사실 알고 있었는데 제대로 활용하진 못했다고 하는 게 더 맞을 것이다.

근데 오늘 DoD 발표 보다가 캐시라인 크기에 대해 얘기하는 걸 보고 깨달음을 얻었다.

그래서 swc_css의 AST를 CPU 캐시에 더 친화적이도록 많은 타입을 바꿨고, 결과는

Gnuplot not found, using plotters backend Benchmarking css/minify/libraries/bootstrap Benchmarking css/minify/libraries/bootstrap: Warming up for 3.0000 s Benchmarking css/minify/libraries/bootstrap: Collecting 10 samples in estimated 5.2997 s (825 iterations) Benchmarking css/minify/libraries/bootstrap: Analyzing css/minify/libraries/bootstrap time: [6.4418 ms 6.4475 ms 6.4558 ms] change: [-21.738% -21.403% -21.047%] (p = 0.00 < 0.05) Performance has improved. Found 1 outliers among 10 measurements (10.00%) 1 (10.00%) high mild

이다.

만족스러운 최적화 결과다.