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

Add an interface for parsing raw data (byte[]) #932

Open
bfjm opened this issue Jan 20, 2025 · 1 comment
Open

Add an interface for parsing raw data (byte[]) #932

bfjm opened this issue Jan 20, 2025 · 1 comment

Comments

@bfjm
Copy link

bfjm commented Jan 20, 2025

Is your feature request related to a problem? Please describe.
Use String to pass messages. String is immutable, but many String objects cannot be reused

Describe the solution you'd like
Add an interface for message.fromBytes

Describe alternatives you've considered
Use ByteBuffer instead

Additional context
In a trading system, we want to reduce gc and increase object reuse, and if we think in terms of byte[], object reuse will increase

@chrjohn
Copy link
Member

chrjohn commented Jan 20, 2025

Thanks. Are you able to submit a PR?

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

No branches or pull requests

2 participants