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 performance improvements with reference mutable map implementation, and benchmarks #302

Merged
merged 6 commits into from
Apr 18, 2014

Conversation

ianoc
Copy link
Collaborator

@ianoc ianoc commented Apr 16, 2014

Geeking out! add's mostly performance improvements along with a reference mutable map implementation. Also adds a benchmark to track the perf of these

@jcoveney jcoveney changed the title Feature/async summers2 Add performance improvements with reference mutable map implementation, and benchmarks Apr 16, 2014

/**
* @author Ian O Connell
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add a short description here?

extends AsyncSummer[(Key, Value), Map[Key, Value]]
with WithFlushConditions[(Key, Value), Map[Key, Value]] {


private class MapContainer private (val next: Value, privBuf: ListBuffer[Value], var elementsCommitted: Int) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's add a TODO: I think this algorithm is not using mutability. It could work almost exactly the same with List[Value] and vals everywhere.

johnynek added a commit that referenced this pull request Apr 18, 2014
Add performance improvements with reference mutable map implementation, and benchmarks
@johnynek johnynek merged commit a16ac6e into develop Apr 18, 2014
@johnynek johnynek deleted the feature/asyncSummers2 branch April 18, 2014 01:10
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.

3 participants