-
Notifications
You must be signed in to change notification settings - Fork 99
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
Depend on primitive #206
base: master
Are you sure you want to change the base?
Depend on primitive #206
Conversation
…atch names of functions from Data.Primitive.SmallArray. For the copying functions, this also requires flipping the order of the arguments.
…d of rolling them here.
I just pushed the changes to switch over to
It passes the test suite. |
Here are some benchmarks: https://gist.github.com/andrewthad/d387fee3231ebaa58161c009cb1703a5. The first column is the benchmark name. The second is the delta between the means (status quo minus primitive). A negative number signifies that it got faster (or more likely it's just because of a little bit of system noise). A positive number signifies that it got slower (or again because of noise). I'm still trying to figure out how to draw a meaningful conclusion from this information. |
Thanks @andrewthad! This is a significant amount of work and I'd love to get to reviewing it at some point when we've cleared out some higher priority tasks. David now has some help, so we'll probably be able to consider this relatively soon. |
FWIW, |
I remember @tibbe being concerned about how the |
Work in progress.
Currently,
unordered-containers
includes a moduleData.HashMap.Array
that is nearly a copy ofData.Primitive.SmallArray
. The module fromunordered-containers
also contains some other goodies for doing things like inserting at an index, deleting an element, etc. (having these inprimitive
wouldn't make sense). This PR changesunordered-containers
to use types and functions fromprimitive
where possible.The initial commit starts by renaming the functions and types from
Data.HashMap.Array
to match the names they are given inData.Primitive.SmallArray
.Other things that need to happen for this to be finished:
primitive
.