Fast Allocations in Ruby 3.5
https://railsatscale.com/2025-05-21-fast-allocations-in-ruby-3-5/
https://news.ycombinator.com/item?id=44062160
Ruby 3.5 中的快速对象分配
Ruby 3.5 通过优化对象分配,显著提升了性能,尤其是在使用 YJIT 时,速度提升可达 6.5 倍。
Key Takeaways
- Ruby 3.5 的对象分配速度比 Ruby 3.4.2 快 1.8 倍(无 YJIT)和 2.3 倍(有 YJIT)。
- 关键字参数越多,速度提升越明显,使用 YJIT 时速度提升可达 6.5 倍。
- 通过内联 Class#new 方法,消除了参数复制和栈帧开销。
- 优化减少了对象分配次数,尤其是关键字参数传递时的哈希分配。
- 该优化导致 Class#new 调用栈帧的缺失,可能影响调试信息。
https://railsatscale.com/2025-05-21-fast-allocations-in-ruby-3-5/
https://news.ycombinator.com/item?id=44062160
Ruby 3.5 中的快速对象分配
Ruby 3.5 通过优化对象分配,显著提升了性能,尤其是在使用 YJIT 时,速度提升可达 6.5 倍。
Key Takeaways
- Ruby 3.5 的对象分配速度比 Ruby 3.4.2 快 1.8 倍(无 YJIT)和 2.3 倍(有 YJIT)。
- 关键字参数越多,速度提升越明显,使用 YJIT 时速度提升可达 6.5 倍。
- 通过内联 Class#new 方法,消除了参数复制和栈帧开销。
- 优化减少了对象分配次数,尤其是关键字参数传递时的哈希分配。
- 该优化导致 Class#new 调用栈帧的缺失,可能影响调试信息。
Rails at Scale
Fast Allocations in Ruby 3.5
Many Ruby applications allocate objects. What if we could make allocating objects six times faster? We can! Read on to learn more!
Akasha Terminal: dev🍃
https://blog.gitbutler.com/how-git-core-devs-configure-git/ AI 摘要 (By Moe Copy):本文分享了 Git 核心开发者常用的配置设置,并探讨了这些设置为何应成为默认值。文章分为三部分:明显改进 Git 的配置(如分支排序、标签排序、默认分支、差异算法等)、无害且可能有用的配置(如自动纠正提示、提交时显示差异等),以及个人偏好的配置(如合并冲突样式、拉取默认行为等)。作者通过实际示例和配置代码,详细解释了每个设置的作用和优势。 TLDR…
发一下我用得上的
有争议的:
git config --global init.defaultBranch main # 默认主分支命名为 main
git config --global tag.sort version:refname # 让 1.100 排在 1.99 后面
git config --global push.autoSetupRemote true # 自动发布远程新分支
git config --global push.followTags true # 自动推送本地 tags 到 remote
git config --global help.autocorrect prompt # 自动纠错并询问,prompt 改成 10 是自动等待 10 * 100ms 后执行,详见 https://blog.gitbutler.com/why-is-git-autocorrect-too-fast-for-formula-one-drivers/
有争议的:
# 自动删除远程删除的分支, Tags (e.g. origin/delete-branch)
git config --global fetch.prune true
git config --global fetch.pruneTags true
git config --global fetch.all true
# 拉取冲突默认 rebase
git config --global pull.rebase true
🥰3
群友锐评 Harmony Desktop:
拼好 OS
用的 Musl C,有 dt (里面有大量私有组件,有 ubsan 和 tsan 和 hwasan,分别来自 LLVM (Linux 内核也在用) 谷歌 和 安卓,终端是 Alacritty, 窗口 ID 是 window76_xcomponent0 (感觉像是给每个窗口分配了个 XServer,类似 XWayland, 用户没有 chown chmod 权限
😁5
推特是真草台班子,登录接口挂了 40h 了
https://downdetector.com/status/twitter/
https://downdetector.com/status/twitter/
😁3
Forwarded from HAT's Public Channel |
不是你 DNSPod 又是在哪里拉的 Excel 表???
https://docs.dnspod.cn/dns/dns-record-line/#%E7%9C%81%E4%BB%BD%E4%BA%91%E5%8E%82%E5%95%86
https://docs.dnspod.cn/dns/dns-record-line/#%E7%9C%81%E4%BB%BD%E4%BA%91%E5%8E%82%E5%95%86
Forwarded from 🍋小T
【我的悲伤是火做的-哔哩哔哩】 https://www.bilibili.com/video/BV1n7jnzJEWG?p=1&unique_k=2333
Bilibili
我的悲伤是火做的_哔哩哔哩_bilibili
原作:chilichill BV1Qc411h7Ys填词:@peinko PV:@北岷有籽-其岷白人 @peinko 特别鸣谢:@猫桃桃momoka 调教软件:XStudio某天半夜被热醒灵感爆发记下歌词(话说真的不是脑子被热坏了吗)新手第一次接触XS,能动已经是奇迹了(感谢桃桃老师悉心指导)感谢北岷帮忙制作PPT(划掉)PV, 视频播放量 255781、弹幕量 428、点赞数 44927、投硬币枚数 5918、收藏人数 10810、转发人数 5007, 视频作者 peinko, 作者简介 …
Akasha Terminal: dev🍃
转转上门抢劫,mbp 也没卖掉,添点钱全款买了新的( 在这里同出一个 M1 Pro 的 MBP,银色,16+1T,10 核 CPU+16 核 GPU,美版,Apple Intelligence 已经可用 成色自定义 9 成新: A 面有个非常小的凹坑(剪刀不小心砸到了),ACD 面有一些正常使用的细小划痕,键盘祖传打油(售后可以免费换,过保也行),电池健康 98% 左右 转转报价 6k,闲鱼均价 7.5k,群友优惠按均价立减 -500 某人看我换了之后自己也想换,所以后面可能还会出个 MBP14(…
美版银色 16 寸 M1 Pro 16 + 1T,10 cpus + 16 gpus,成色如图,电池健康98%,apple intelligence已可用,群友按均价刀500到5500
再刀100到5400
已出,感谢你们
🌚2