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

Support allocated instances #99

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Support allocated instances #99

merged 1 commit into from
Jan 5, 2021

Conversation

JacobEvelyn
Copy link
Member

@JacobEvelyn JacobEvelyn commented Jan 4, 2021

Before merging:

  • Copy the latest benchmark results into the README.md and update this PR
  • If this change merits an update to CHANGELOG.md, add an entry following Keep a Changelog guidelines with semantic versioning

lib/memo_wise.rb Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 4, 2021

Codecov Report

Merging #99 (392530e) into main (09d463c) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #99   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          602       623   +21     
=========================================
+ Hits           602       623   +21     
Impacted Files Coverage Δ
lib/memo_wise.rb 100.00% <100.00%> (ø)
spec/memo_wise_spec.rb 100.00% <100.00%> (ø)

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 09d463c...0f186fe. Read the comment docs.

lib/memo_wise.rb Outdated Show resolved Hide resolved
@ms-ati
Copy link
Contributor

ms-ati commented Jan 4, 2021

Some questions up, but overall awesome find on Class#allocate! A corner of Ruby that TIL!

Copy link
Contributor

@ms-ati ms-ati left a comment

Choose a reason for hiding this comment

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

Hi Jake, can we restore the commented versions of the generated code, and add a comment explaining their presence if that's helpful?

@JacobEvelyn JacobEvelyn force-pushed the support-allocate branch 2 times, most recently from 4d9857c to 42c435c Compare January 5, 2021 01:02
|`(a, *args)`|**baseline**|2.02x slower|2.28x slower|1.99x slower|1.99x slower|
|`(a:, **kwargs)`|**baseline**|1.93x slower|2.07x slower|1.87x slower|1.92x slower|
|`(a, *args, b:, **kwargs)`|**baseline**|1.94x slower|2.15x slower|1.92x slower|1.93x slower|
|`()` (none)|**baseline**|12.27x slower|2.57x slower|1.22x slower|3.22x slower|
Copy link
Member Author

Choose a reason for hiding this comment

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

@JacobEvelyn JacobEvelyn merged commit 2424efe into main Jan 5, 2021
@JacobEvelyn JacobEvelyn deleted the support-allocate branch January 5, 2021 16:29
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