Giter VIP home page Giter VIP logo

Comments (1)

KurtBestor avatar KurtBestor commented on June 20, 2024

모든 프로그램이 겪는 문제이고, 특히 GUI 프로그램은 UI 업데이트 부분에 락이 걸려있기 때문에 잦은 UI 변경은 버벅임을 유발합니다. 작업관리자에 나오는 건 프로세스 단위이고, 말씀하신 작업들은 UI 와 다른 스레드에서 동작해요. 대부분의 GUI 프로그램은 멀티스레딩으로 개발돼요.
yt-dlp 는 멀티스레드를 고려하지 않고 개발되었기 때문에 GIL 을 오래 잠궈서 해당 문제가 조금 심하고, 검색기는 최근에 UI 최적화를 해서 훨씬 나을 거예요: https://github.com/KurtBestor/Hitomi-Downloader/releases/tag/Technical-Preview

UI 부분과 나머지 부분을 완전히 분리해서 멀티프로세스로 개발시 특정 부분에서 버벅임이 조금 줄 수는 있겠지만 다음과 같은 단점들이 있어요:

  • 프로세스 간 데이터 교환이 느림 (작업 속도, 반응 속도 저하)
  • 실행 속도 저하 (대략 두배)
  • 시스템 자원 소모 증가
  • 바이러스 오진 가능성 증가

버벅임이 엄청나게 심하다면 위 옵션도 고려해볼만한 하지만 yt-dlp 도 다운로드 시작 전 읽을 때만 잠깐 버벅이고 검색기도 충분히 나아졌기 때문에 바꾸지 않는 게 나을 것 같아요

from hitomi-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.