Skip to content

Conversation

@treeowl
Copy link
Contributor

@treeowl treeowl commented Jul 3, 2018

  • Unbox MVars and IVars all over the place.

  • Restructure IVarContents to avoid extra allocation.

  • Reduce the use of atomicModifyIORef somewhat.

* Unbox `MVar`s and `IVar`s all over the place.

* Restructure `IVarContents` to avoid extra allocation.

* Reduce the use of `atomicModifyIORef` somewhat.
Copy link
Owner

@simonmar simonmar left a comment

Choose a reason for hiding this comment

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

I'm hesitant about just merging this without any benchmarks to demonstrate the improvement. I think the code has been quite heavily tuned already, so I'd be mildly surprised if unboxing the IVars was overlooked - perhaps they end up being reboxed again?

@treeowl
Copy link
Contributor Author

treeowl commented Jul 10, 2018

I don't think they do. Do you think you could spare a few cycles to run benchmarks? I still lack the capacity.

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