Skip to content

In adafruit_sdcard.py, calculate_crc() re-create the CRC table each call, slowing all things down #22

Closed
@Anton-2

Description

@Anton-2

calculate_crc() uses a computed crc_table to speed crc calculation up.

But this crc_table is calculated each time, for each command sent to the card, when it should be calculated once on module loading.

Moving this calculation at modules level helps making adafruit_sdcard.py faster.

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