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

IO Optimizations #442

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

DJShepherd
Copy link
Contributor

  • Reduced memory copies in NAEUSB and serial interfaces and refactored API
  • Refactored OpenADCInterface sendMessage API
  • Added optimized memory utility functions
  • Renamed CW/bytearray to CWByteArray to prevent type confusions with builtin functions

Passed all tests/test_api.py and ran the clock glitch demo on CWLITE.

@alex-dewar
Copy link
Contributor

Hi,

Thanks for making the changes! I'll take a look through the code and provide feedback if necessary. My initial run through some of the tutorials with the Lite looks great.

@@ -27,7 +27,7 @@
from ...common.utils import util
from ._base import AcqKeyTextPattern_Base
from ...common.utils.util import camel_case_deprecated
bytearray = util.bytearray # type: ignore
bytearray = util.CWByteArray # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

Lines 190 and 209 are using util.bytearray(), which needs to be changed to bytearray()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed! Also grepped the project for other similar instances and fixed those, as well.

…AEUSB and serial interfaces and simplified API; Simplified OpenADCInterface sendMessage API; Renamed bytearray subclass to CWByteArray to prevent type confusions with builtin functions
@alex-dewar
Copy link
Contributor

Code looks good and seems to run fine.

@alex-dewar alex-dewar merged commit 83677e0 into newaetech:develop Jun 5, 2023
1 check passed
@DJShepherd DJShepherd deleted the DJShepherd/io_performance branch June 5, 2023 18:17
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.

None yet

2 participants