Skip to Content
고성능 파이썬(2판)
book

고성능 파이썬(2판)

by 오현석, 미샤 고렐릭, 이안 오스발트
May 2021
Beginner to intermediate
528 pages
11h 27m
Korean
Hanbit Media, Inc.
Content preview from 고성능 파이썬(2판)
515
12
현장에서 얻은 교훈
카산드라
1
.
2
가 복잡한 인덱스 질의를 허용하지 않아서, 그런 기능은 조인과 비슷한 질의를 사
용해 지원했다. 하지만 최대
4GB
까지의 작은 데이터셋은 대부분을 메모리에 데이터를 넣은
채로 처리해야만 하므로 복잡한 질의를 허용했다.
PyPy
는 균질 리스트를 메모리에 더 조밀하
게 넣는 전략을 택했기 때문에, 심지어
C
파이썬이 데이터를 메모리에 올리지 못하더라도 잘 작
동했다.
PyPy
의 다른 이점은 데이터 조작이나 분석이 일어나는 루프에서
JIT
컴파일이 실행된
다는 점이다. 우리는 루프 내부에서는 타입이 변경되지 않도록 코드를 작성했다. 그렇게 하면
JIT
컴파일 효과가 특히 더 좋아진다.
문서를 색인하고 빠르게 검색하려고 일래스틱서치를 사용했다. 일래스틱서치는 질의의 복잡
도 면에서 매우 유연하며 사용하면서 큰 문제를 겪은 적도 없었다. 우리가 겪은 문제 하나는 문
서를 갱신할 때 나타났다. 일래스틱서치는 빠르게 바뀌는 문서를 처리하도록 설계되지 않아서
그 부분을 카산드라로 이전할 수밖에 없었다. 다른 한계는 데이터베이스 인스턴스가 요구하는
메모리나 여러 패싯
facet
과 관련이 있었다. 하지만 그런 문제는 더 작은 질의를 사용하고 셀러리
작업을 사용해 데이터를 수동으로 처리하는 방식으로 해결할 수 있었다. 일래스틱서치 서버 풀
과의 상호작용에 사용한
PyPy
PyES
라이브러리에서는 한 번도 큰 문제를 마주친 적이 없다.
12.9.3
웹 애플리케이션
앞에서 말했듯이, 우리는 서드파티 확장과 플라스크 프레임워크를 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

이펙티브 타입스크립트

이펙티브 타입스크립트

Dan Vanderkam
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
핸즈온 비지도 학습

핸즈온 비지도 학습

강재원, 권재철, 안쿠르 A. 파텔

Publisher Resources

ISBN: 9791162244210