4 ms·
Here's an optimization that one of the maintainers of rails is doing (has already done?) on #find http://tenderlovemaking.com/2014/02/19/adequaterecord-pro-lik
by aturek 12y ago
Here's an optimization that one of the maintainers of rails is doing (has already done?) on #find
http://tenderlovemaking.com/2014/02/19/adequaterecord-pro-like-activerecord.html http://tenderlovemaking.com/2014/02/19/adequaterecord-pro-li...
- deleted 12y ago[deleted]
- weaksauce 12y agothat was added as art of rails 4.2.0
- weaksauce 12y agoMy keyboard seems to disregard about 25% of all my p, k, and l key presses. The above should have been part. I'd throw the keyboard out but I love the layout of it. If anyone knows of a Microsoft natural Internet keyboard layout with mechanical switches I'd buy a few immediately. There's got to be a bespoke keyboard business out there somewhere with all the 3d printers nowadays.
- tinco 12y agoThe second step in the omniref story is precisely the optimization Aaron made. It's the `s = find_by_statement_cache[key] || ..` statement.