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 a reset() method in Message #40

Closed
wants to merge 2 commits into from

Conversation

charlesbr1
Copy link
Contributor

The clear() method is public but its purpose is not explained.
It does not allows to reuse a message because it removes the header & trailers content of a message.
This reset() method can be used to reuse a message.

It would be much efficient to reuse messages if we have List instead of TreeMap in FieldMap class, to store fields and groups. Because TreeMap allocate a bucket for each entry, and they cannot be recycled.

The clear() method is public but its purpose is not explained.
It does not allow to reuse a message because it removes the header & trailers of a message.
This reset() method can be used to reuse a message.
The clear() method is public but its purpose is not explained.
It does not allows to reuse a message because it removes the header & trailers content of a message.
This reset() method can be used to reuse a message.
@philipwhiuk
Copy link
Contributor

TreeMap provides ordering.

Probably should have some level of tests for this.

@charlesbr1
Copy link
Contributor Author

charlesbr1 commented Nov 7, 2017 via email

@MartyIX
Copy link
Contributor

MartyIX commented Nov 8, 2017

I don't really understand why charlesbr1's PRs get so little attention.

@charlesbr1
Copy link
Contributor Author

charlesbr1 commented Nov 8, 2017 via email

@chrjohn
Copy link
Member

chrjohn commented Nov 8, 2017

Hi @MartyIX , @charlesbr1 ,

the answer to this is pretty simple: lack of time. My employer allows me to work a few hours per week on this open source project and I focus on implementing stuff that needs to be done or otherwise QFJ users will run into problems (e.g. support for higher precision time stamps).

Additionally, the focus in QFJ is not performance. Of course, there is always room for improvement (and there were some performance-related changes done in the past) but I personally do not have time to work through every PR that claims that this or that has been improved. This is not because I do not trust the one that created the PR but because I do not have time to test all of this. IMHO there should be something like a JMH benchmark or GC logs so that everyone can reproduce the optimizations.

Moreover, as current maintainer of this project I do not want to introduce too much risk shortly before a release.
I also contacted Charles a few months ago if he could update his PRs to the current state of the project. But I understood that he is not involved in QFJ anymore and so it is difficult for him.

That being said, reviewers are always welcome. And I also noticed that more and more people review/comment on the various PRs. Thanks to all people that already did. :)

Cheers,
Chris.

@charlesbr1
Copy link
Contributor Author

charlesbr1 commented Nov 8, 2017 via email

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.

4 participants