Tagged

optimization

A collection of 4 posts

Peephole: CPython์€ ์–ด๋–ป๊ฒŒ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•˜๋Š”๊ฐ€
python

Peephole: CPython์€ ์–ด๋–ป๊ฒŒ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•˜๋Š”๊ฐ€

๋งŽ์€ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด๋Š” "์‹คํ–‰ ์„ฑ๋Šฅ(์†๋„)"์ด ์ข‹์ง€ ์•Š๋‹ค๋Š” ํฐ ๋‹จ์ ์„ ์ง€๋‹ˆ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด JIT ๋Ÿฐํƒ€์ž„์„ ๋ถ™์ด๊ฑฐ๋‚˜ ๊ฐœ๋ฐœ์ž ์Šค์Šค๋กœ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•˜๊ธฐ๋„ ํ•˜์ง€๋งŒ ๊ฐœ๋ฐœ์ž ์Šค์Šค๋กœ ์ฝ”๋“œ๋ฅผ ์ตœ์ ํ™”ํ•œ๋‹ค๊ณ  ํ•˜์—ฌ(์ข‹์€ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ–ˆ๋‹ค๊ณ  ํ–ˆ์„ ๋•Œ) ํˆฌ์žํ•˜๋Š” ์‹œ๊ฐ„์— ๋น„ํ•ด ํฐ ์„ฑ๋Šฅํ–ฅ์ƒ์„ ์–ป๊ธฐ๋Š” ์–ด๋ ต์Šต๋‹ˆ๋‹ค. Python์€ ์ด๋Ÿฌํ•œ ๋ฌธ์ œ๋ฅผ ์กฐ๊ธˆ์ด๋‚˜๋งˆ ํ•ด์†Œ์‹œํ‚ค๊ณ ์ž Peephole์ด๋ผ๋Š” Python ๋ฐ”์ดํŠธ์ฝ”๋“œ ์ตœ์ ํ™”๋ฅผ

HTTPS๋Š” HTTP๋ณด๋‹ค ๋น ๋ฅด๋‹ค
http

HTTPS๋Š” HTTP๋ณด๋‹ค ๋น ๋ฅด๋‹ค

๋ถ€์ œ: 21์„ธ๊ธฐ์— HTTP๋ฅผ ์“ฐ๋Š”, HTTPS๊ฐ€ HTTP๋ณด๋‹ค ๋ฌด๊ฒ๊ณ  ๋Š๋ฆฌ๋‹ค๊ณ  ๋ฏฟ๋Š” ์›น ์„œ๋ฒ„ ๊ด€๋ฆฌ์ž๋“ค์—๊ฒŒ ๊ณ ํ•จ ํฌ๋กœ๋ฏธ์›€ ๊ฐœ๋ฐœ ํŒ€์ด ํ–ฅํ›„ ๊ณต๊ฐœ๋  ํฌ๋กฌ 62 ๋ฒ„์ „๋ถ€ํ„ฐ๋Š” HTTP๋กœ ์‚ฌ์ดํŠธ์— ์ ‘์†ํ–ˆ์„ ๋•Œ ์‹œํฌ๋ฆฟ ๋ชจ๋“œ์—์„œ๋Š” ํ•ญ์ƒ "์•ˆ์ „ํ•˜์ง€ ์•Š์Œ"์œผ๋กœ ํ‘œ์‹œํ•˜๊ณ  ์ผ๋ฐ˜ ๋ชจ๋“œ์™€ ์‹œํฌ๋ฆฟ ๋ชจ๋“œ ๋ชจ๋‘ ๋ฐ์ดํ„ฐ๋ฅผ ์ž…๋ ฅํ•˜๋ ค ํ•  ๋•Œ "์•ˆ์ „ํ•˜์ง€ ์•Š์Œ"์„ ๋„์šฐ๊ฒ ๋‹ค๊ณ  ๋ฐœํ‘œํ–ˆ์Šต๋‹ˆ๋‹ค. ๋งŽ์ด ์•Œ๋ ค์ง„ ๋Œ€๋กœ HTTP๋Š”

http2

[๋ฒˆ์—ญ] On The Merits of QUIC for HTTP

์ด ๊ธ€์€ On The Merits of QUIC for HTTP [http://bitsup.blogspot.kr/2017/04/on-merits-of-quic-for-http.html]์˜ ๋ฒˆ์—ญ๊ธ€์ž…๋‹ˆ๋‹ค. ์—‰์„ฑํ•œ ๋ถ€๋ถ„์ด ๋งŽ๊ณ  ์˜ค์—ญ์ด ์žˆ์„ ์ˆ˜ ์žˆ์œผ๋‚˜ ์ฐจ์ฐจ ์ˆ˜์ •ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ €๋Š” HTTP/2 (RFC 7540)๊ฐ€ 2๋…„๋„ ๋˜์ง€ ์•Š์•˜์„ ๋•Œ ์™œ ์ธํ„ฐ๋„ท HTTP ์ปค๋ฎค๋‹ˆํ‹ฐ๊ฐ€ QUIC ๊ธฐ๋ฐ˜์˜ IETF๋ฅผ ์ž‘์—…์ค‘์ธ์ง€์— ๋Œ€ํ•œ ์งˆ๋ฌธ์„ ์ž์ฃผ

optimization

Cache-Control ํ™•์žฅ์ธ Immutable์„ ์ด์šฉํ•œ ์บ์‹œ ์ตœ์ ํ™”

์ด ๊ธ€์˜ ์›๋ณธ์€ https://blog.jxck.io/entries/2016-07-12/cache-control-immutable.html(์ผ๋ณธ์–ด)์ด๋ฉฐ [https://blog.jxck.io/entries/2016-07-12/cache-control-immutable.html(%EC%9D%BC%EB%B3%B8%EC%96%B4)%EC%9D%B4%EB%A9%B0] ๋ฒˆ์—ญ๊ณผ ์•ฝ๊ฐ„์˜ ์ˆ˜์ •์„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค. -------------------------------------------------------------------------------- ์†Œ๊ฐœ ์›น ๋ธŒ๋ผ์šฐ์ €๋Š” max-age๊ฐ€ ์„ค์ •๋˜์–ด ์žˆ์–ด๋„ ํŽ˜์ด์ง€๋ฅผ ์ƒˆ๋กœ๊ณ ์นจ ํ•