Skip to content

onebone 함수들에 대해 numba 모듈을 추가하는 방안 #105

Description

@seone-kim

onebone에 있는 모든 함수에 대해 적용할 필요는 없고, 적용할 수도 없겠지만 Numpy 기반으로 작성된 함수들에 대해서는 numba 모듈의 jit decorator을 이용하여 간단하게 성능을 크게 올릴 수 있습니다.

일단 급하게 업그레이드를 해야한다면 @jit 데코레이터만 추가하면 될 것 같고, 고도화한다면 numba에 대해 공부를 한 뒤 목적에 맞게 사용하면 될 거 같습니다.

성능 비교 관련 문서 : https://pythonspeed.com/articles/numba-faster-python/
호환성 이슈 : https://numba.pydata.org/numba-doc/latest/reference/pysupported.html#pysupported

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions