Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTT: search for RTT control block in smaller chunks #1375

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

te-johan
Copy link
Contributor

recently started using pyOCD and noticed that RTT searched for the control block rather slow.
when testing on my device to took 0.3 seconds to find it compared to 4.3 seconds before this commit.

Copy link
Member

@flit flit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding your copyright at the end of the existing copyrights in the file header comment? No other requested changes—looks great! 😄

@flit
Copy link
Member

flit commented Apr 27, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

this speeds up the searching dramatically since it will
read and search 1024 bytes at the time instead of reading
all memory on the device.

Signed-off-by: Johan Carlsson <johan.carlsson@teenage.engineering>
@flit
Copy link
Member

flit commented Apr 28, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@flit
Copy link
Member

flit commented Apr 28, 2022

Thanks for adding your copyright!

@flit flit merged commit cfe9b9a into pyocd:main Apr 28, 2022
flit pushed a commit that referenced this pull request Apr 28, 2022
this speeds up the searching dramatically since it will
read and search 1024 bytes at the time instead of reading
all memory on the device.

Signed-off-by: Johan Carlsson <johan.carlsson@teenage.engineering>

Co-authored-by: Johan Carlsson <johan.carlsson@teenage.engineering>
@flit
Copy link
Member

flit commented Apr 28, 2022

@te-johan Fyi, so you're not surprised, I moved this commit over to the develop branch since it's an improvement. (Only bug fixes or docs changes are allowed on main prior to a release. I should have noticed the target branch for this PR earlier. Not a problem though. 😄 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants