Skip to content

enable default SerDe, optimize record inserts#33

Merged
ymatsuda merged 1 commit into
confluentinc:streamingfrom
ymatsuda:default_SerDe
Sep 3, 2015
Merged

enable default SerDe, optimize record inserts#33
ymatsuda merged 1 commit into
confluentinc:streamingfrom
ymatsuda:default_SerDe

Conversation

@ymatsuda

@ymatsuda ymatsuda commented Sep 3, 2015

Copy link
Copy Markdown

Guozhang Wang (@guozhangwang)

  • enabled default SerDe (from(topic), sendTo(topic), addSource(name, topics...)), addSink(name, topic, parentNames...)
  • removed unnecessary SuppressWarnings
  • pushed down addRecords to RecordQueue

@guozhangwang

Copy link
Copy Markdown

LGTM. Just wondering what is the benefit of pushing addRecords to RecordQueue? Admittedly this is an internal class, but I feel the old addRecord / putRecord symmetry is also OK?

@ymatsuda

ymatsuda commented Sep 3, 2015

Copy link
Copy Markdown
Author

The benefit are reduced hash lookups of RecordQueue (we used to do it for each record to insert a record and to get the queue size) and reduced call stack operations and method call overheads. Also, the use of deserializers is confined in SourceNode. It is good because neither StreamTask, PartitionGroup, RecordQueue needs to know about deserializers.

ymatsuda added a commit that referenced this pull request Sep 3, 2015
enable default SerDe, optimize record inserts
@ymatsuda ymatsuda merged commit def9e90 into confluentinc:streaming Sep 3, 2015
@ymatsuda ymatsuda deleted the default_SerDe branch September 10, 2015 16:15
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