-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Change Dict to be ordered by default #38145
Conversation
I fixed non-serious docs failures, and this also went away, a false alam unrelated to my stuff(?):
|
As suggested in the discussion, please provide motivation for this. In particular, cf the discussions in #34265 and #10116. Benchmarks would be interesting too. |
The motivation is in the discussion you linked, and Jeff, Stefan and a lot of others want ordered by default, see this thread/comment: |
@JeffBezanson, this is probably ready for package eval, and it seems time sensitive for Julia 1.6. I intentionally have Set unordered with older renamed Dict:
It's something that could be changed later, seems not as important to me, unless you would want them in sync, both ordered (or not). I saw you can make some operation faster with ordered sets (while it wouldn't be with just Set changed to ordered). EDIT2: I'll look into (while I've yet to see a connection to my change):
EDIT: FYI, there are false alarms probably, but also:
EDIT3: |
to try to silence test error. Change Set to, so no unordered used.
skip_deleted_floor! from the old Dict (now UDict), that no ordered dict has and ht_keyindex2! (OrderedDict only has ht_keyindex2; swissdict.jl does, but it's not ordered).
EDIT: At least one actual failure (but also in the original where I took the code from), giving stack-overflow: JuliaCollections/OrderedCollections.jl#65 I'm actually not too sure it's a bug in the recursive deepcopy test code, and if, if we want to keep bug-compatibility. The 3 so-far buildbot/tester_* failures (and 3 more coming?) seem like false alarms, or something I do not understand, related to:
|
Fixes: #34265 Supersedes my #37804. See also my argument: #37761 (comment)
[EDIT: Based on @oxinabox code, OrderedDict from OrderedCollections.jl; as changing Dict to be ordered is unworkable for me, seems proven a breaking change, this PR is abandoned.]