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

fix #17758, deprecate is #18978

Merged
merged 1 commit into from
Oct 18, 2016
Merged

fix #17758, deprecate is #18978

merged 1 commit into from
Oct 18, 2016

Conversation

JeffBezanson
Copy link
Member

No description provided.

@@ -324,7 +323,7 @@ end

function pop!(t::ObjectIdDict, key::ANY)
val = pop!(t, key, secret_table_token)
!is(val,secret_table_token) ? val : throw(KeyError(key))
val !== secret_table_token ? val : throw(KeyError(key))
Copy link
Member

Choose a reason for hiding this comment

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

maybe check that this doesn't cause a performance regression?

Copy link
Member Author

Choose a reason for hiding this comment

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

From what I can tell !== always gets inlined.

tchanged(n::ANY, o::ANY) = is(o,NF) || (!is(n,NF) && !(n ⊑ o))
schanged(n::ANY, o::ANY) = is(o,NF) || (!is(n,NF) && !issubstate(n, o))
tchanged(n::ANY, o::ANY) = o===NF || (n!==NF && !(n ⊑ o))
schanged(n::ANY, o::ANY) = o===NF || (n!==NF && !issubstate(n, o))
Copy link
Member

Choose a reason for hiding this comment

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

also performance here (and so on)

Copy link
Contributor

@TotalVerb TotalVerb Oct 21, 2016

Choose a reason for hiding this comment

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

Inference performance regressions probably weren't caught by nanosoldier. This probably regressed somehow, but it's probably not a big deal.

Edit: Apparently !== still gets inlined. Huh.

@test is(typeof(Set([1,2,3])), Set{Int})
@test is(typeof(Set{Int}([3])), Set{Int})
@test ===(typeof(Set([1,2,3])), Set{Int})
@test ===(typeof(Set{Int}([3])), Set{Int})
Copy link
Contributor

Choose a reason for hiding this comment

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

these should probably be isa ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes; this way was just easier search-replace.

@JeffBezanson
Copy link
Member Author

@nanosoldier runbenchmarks(ALL, vs = ":master")

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - no performance regressions were detected. A full report can be found here. cc @jrevels

@JeffBezanson JeffBezanson merged commit d3fb0f2 into master Oct 18, 2016
@tkelman tkelman deleted the jb/is branch October 18, 2016 06:45
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.

5 participants