Skip to content

Conversation

@fractaledmind
Copy link
Owner

No description provided.

@fractaledmind fractaledmind self-assigned this Nov 11, 2018
@fractaledmind
Copy link
Owner Author

I should profile this gem before and after applying this change to see how it affects things.

@fractaledmind fractaledmind changed the title Begin experimenting with memoizing the ActiveSet operation methods WIP: Begin experimenting with memoizing the ActiveSet operation methods Dec 12, 2018
def filter(instructions_hash)
filterer = Filtering::Operation.new(@view, instructions_hash)
reinitialize(filterer.execute, :filter, filterer.operation_instructions)
@filtered_set ||= Hash.new do |h, (view, instructions_hash)|
Copy link

Choose a reason for hiding this comment

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

Lint/ShadowingOuterLocalVariable: Shadowing outer local variable - instructions_hash.

def filter(instructions_hash)
filterer = Filtering::Operation.new(@view, instructions_hash)
reinitialize(filterer.execute, :filter, filterer.operation_instructions)
@filtered_set ||= Hash.new do |h, (view, instructions_hash)|
Copy link

Choose a reason for hiding this comment

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

UncommunicativeVariableName: ActiveSet#filter has the variable name 'h'. More info.

@codecov
Copy link

codecov bot commented Jun 15, 2019

Codecov Report

Merging #20 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   99.76%   99.76%   +<.01%     
==========================================
  Files          17       17              
  Lines         421      423       +2     
==========================================
+ Hits          420      422       +2     
  Misses          1        1
Impacted Files Coverage Δ
lib/active_set.rb 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c4ef20...e205741. Read the comment docs.

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