@phoet on Twitter ๐ฆ
Building www.weg-li.de ๐ธ
Organizing at www.onruby.eu ๐
Co-Founded www.penseo.de ๐ฟ
Living at www.star-camp-cosa.de ๐
:inbox_tray: :outbox_tray: simple yet clever memoization helper with parameter support
Home Page: https://github.com/phoet/memo-it#readme
License: MIT License
@phoet on Twitter ๐ฆ
Building www.weg-li.de ๐ธ
Organizing at www.onruby.eu ๐
Co-Founded www.penseo.de ๐ฟ
Living at www.star-camp-cosa.de ๐
This is a cool gem, but it's super slow compared to alternatives. Are there plans to improve on that?
Here is a simple benchmark against memo-it and memoist
require 'benchmark/ips'
module Go
extend Memoist
extend self
def go_memo_it
memo { false }
end
def go_memoist
false
end
memoize :go_memoist
end
Benchmark.ips do |x|
x.warmup = 3
x.time = 10
x.report('memo-it') { Go.go_memo_it }
x.report('memoist') { Go.go_memoist }
end
=begin
Warming up --------------------------------------
memo-it 16.623k i/100ms
memoist 127.203k i/100ms
Calculating -------------------------------------
memo-it 185.206k (ยฑ 7.1%) i/s - 1.845M in 10.010942s
memoist 2.252M (ยฑ 6.8%) i/s - 22.515M in 10.044946s
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.