Zettelkasten
Search
⌘K
Graph
Tags
#
python
33개
Python 3.11 gevent 성능은 greenlet 패치 버전에 좌우된다 - 3.2.4는 느리고 3.4.0+는 회복한다
2,089자
python
gevent
greenlet
performance
benchmark
Python datetime 의 localize 는 라벨링이고 astimezone 이 진짜 변환이다
1,217자
python
datetime
timezone
pytz
naive-aware-datetime
Python에서 SSE는 ASGI 환경에서만 운영 가능하다
2,959자
sse
asgi
wsgi
python
fastapi
django
streaming
http
gunicorn sync worker는 keep-alive를 무의미하게 만든다
1,027자
gunicorn
http-keepalive
python
nginx
performance
Gunicorn 워커 수가 많아지면 thundering herd로 인해 일부 워커만 요청을 받는다
1,267자
gunicorn
thundering-herd
haproxy
python
performance
django
ASGI는 WSGI에 async를 얹은 것이 아니라 양방향 메시지 스트림 모델로 재설계된 것이다
1,045자
python
wsgi
asgi
web-server
protocol
Gunicorn은 WSGI 프로세스 매니저, Uvicorn은 ASGI 이벤트 루프 서버다
1,541자
python
wsgi
asgi
gunicorn
uvicorn
web-server
GIL은 race condition을 가릴 수 있어 안 보인다가 안전하다를 의미하지 않는다
723자
python
threading
concurrency
gil
race-condition
Lock의 critical section은 최소한으로 작게 유지해야 한다
890자
python
threading
concurrency
lock
critical-section
threading.Timer는 one-shot non-daemon 스레드라 반복과 종료를 직접 다뤄야 한다
1,180자
python
threading
timer
daemon
Python ctypes로 C 네이티브 라이브러리의 미구현 함수를 바인딩할 수 있다
954자
python
ctypes
ffi
native-binding
agora
파이썬 메타클래스는 클래스의 생성과 동작을 제어한다
184자
python
metaclass
OOP
python 3.12부턴 cpython stack이 PyInterpreterFrame으로 관리된다.
468자
python
Python 동시성 프로그래밍
660자
concurrency
python
Timsort는 merge sort와 insertion sort를 결합한 구조의 정렬 알고리즘이다.
437자
algorithm
python
CGI, FastCGI, WSGI
257자
python
web-server
WSGI
Django ORM 고급 기능
1,425자
django
ORM
python
__pycache__
215자
python
bytecode
import
gunicorn worker
1,355자
python
gunicorn
pydantic
448자
python
pydantic
validation
python MetaClass 다중상속 문제
254자
python
metaclass
inheritance
python dictionary 구현체
329자
python
data-structure
hash
파이썬에서 인터페이스 없는 이유
244자
python
interface
duck-typing
python 3.11 이후부턴 gevent 성능이 악화될 수 있다.
1,617자
python
gevent
concurrent.futures.ThreadPooolExecutor 동작
489자
python
implementation
django orm은 thread-safe 하다
231자
django
python
database
django prefetch_related objects 구현
264자
python
django
implementation
python ThreadPoolExecutore sumbit과 map 동작 차이
209자
python
sync to async 구현
301자
python
implementation
Python array doubling 방식
645자
python
data-structure
greenlet의 동작 방식
349자
python
gevent
green-thread
Gevent에서 grpc가 문제가 되는 이유
566자
python
gevent
concurrency
Gevent에서 threading local이 문제가 되는 이유 - 거짓
299자
python
gevent
concurrency