ES-Alexander / ES-Alexander/pythonic-cv

Investigate performance effects of current structure

オープン
#18 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
Python
スター
45
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

## Motivation:
Every convenience comes at a cost, but quantifying the cost makes it possible to determine whether it's "too expensive".

## Suggested Method
Currently use a combination of inheritance and composition, which make modification and new base classes really simple to implement and use, but may come at a performance cost. Would be good to quantify the difference between the current situation and e.g. the 'best-case' performance of `VideoReader`, `LockedCamera`, and `LockedScreen` being implemented with `cv2.VideoCapture` as their direct parent class.

## Possible Resulting Changes
If performance difference is significant, it may be worth
- making a code-generator that can trade off some program memory for the benefit of fewer function calls at each step
- changing code structure (hard to recommend - very versatile at the moment, and repetition is a 'bad smell')
- recommending this library for rapid development, and more optimised code once development is complete (e.g. lower level looping, or just C++ implementation)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。