Skip to content

Always search full hierarchy for highest definition of a cvar.#5175

Merged
enebo merged 1 commit intojruby:masterfrom
headius:stupid_cvars
Sep 19, 2018
Merged

Always search full hierarchy for highest definition of a cvar.#5175
enebo merged 1 commit intojruby:masterfrom
headius:stupid_cvars

Conversation

@headius
Copy link
Member

@headius headius commented May 16, 2018

This makes the feature basically useless for anything requiring
performance, since it always has to search the entire hierarchy
for a late-assigned value further up.

Additional work using our weak subclass hierarchy might be able
to make reads slightly cheaper (giving up at first successfuly
read) by walking down the hierarchy on every write and killing
other vars, but the concurrency aspects of that make my head spin.

Fixes #1554.

This makes the feature basically useless for anything requiring
performance, since it always has to search the entire hierarchy
for a late-assigned value further up.

Additional work using our weak subclass hierarchy might be able
to make reads slightly cheaper (giving up at first successfuly
read) by walking down the hierarchy on every write and killing
other vars, but the concurrency aspects of that make my head spin.

Fixes jruby#1554.
@headius headius added this to the JRuby 9.2.0.0 milestone May 16, 2018
@enebo enebo modified the milestones: JRuby 9.2.0.0, JRuby 9.2.1.0 May 24, 2018
@kares
Copy link
Member

kares commented Jun 1, 2018

... seems to fail (regress) some MRI tests? or maybe it just needs a rebase

@enebo enebo merged commit a0506c6 into jruby:master Sep 19, 2018
@enebo
Copy link
Member

enebo commented Sep 19, 2018

I applied this locally and those MRI tests are fine. Probably related to my symbol love work.

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