Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
kauruus
@kauruus
会员
第 99290 位会员 / 2022-09-11

三亚
0 篇帖子 / 2 条回帖
1 关注者
0 正在关注
0 收藏
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 用 Puppeteer 生成网页预览图 at 2022年11月03日

    Vercel OG Image Generation 也是做这的。

    为了不跑 chromium,他们自己做了个库把 HTML + CSS 转成 SVG 再转 PNG。

    看上面 DEMO 效果和性能还行,就是 PNG 和 SVG 结果有点不同。

  • Share HashMap for Different Processes by `mmap` in Ruby at 2022年11月03日

    Shared memory between processes is a common practice in the OpenResty/Nginx world.

    Not sure if you protect the shared memory from concurrent access. At least in Nginx, they use a lock for this.

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English