Use arrays instead of lists for data
Open
Nobody has claimed this yet.
to do
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 560
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 3
Description
Currently pyOCD uses lists of ints to hold pretty much all data it uses, from reading or writing memory and flash programming to CMSIS-DAP commands, and so on.
This needs to be changed so that bytearray and/or array.array are used instead. However, lists of ints must still be accepted for APIs parameters.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by mapping the repository-wide paths that store or pass lists of ints, then identify the relevant API tests; done means internal data uses bytearray or array.array while API parameters still accept lists of ints.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100