Subscribe

higepon blog

2010-04-26

Erlang の gb_trees などを gen_server に保持しストレージとして使ってはいけない

mio

タイトルの通り。gb_trees の内部表現はただの Erlang Term なので gen_server の State で渡ってくるたびに全件コピーになりコピーのコストが大きくパフォーマンスが落ちる。
gb_trees への参照はどうやって保持できない世界なのでおとなしく ETS の ordered_set を使うべし。

higepon 2010-04-26 16:36

Bookmark this entry on Hatena::Bookmark
Tweet
Remove all ads
  • Read more
Write a comment
« 今日の復習 Mosh JIT で R6RS test suite が SEGV す… »
Profile
id:higepon id:higepon
Subscribed unsubscribe Subscribe Subscribe
About this blog
Search
Links
  • Hatena Blog
  • ブログをはじめる
  • Weekly Hatena Blog
  • Hatena Blog Pro
Recent Entries
  • Machine Learning Design Patterns
  • MATHEMATICS FOR MACHINE LEARNING の読書記録
  • Indoor Location & Navigation コンペ振り返り
  • Visual Studio Code キーバインディング微調整
  • Riiid コンペ復習 - maskingなど
Archive

Start using Hatena Blog!

higepon is using Hatena Blog. Would you like to try it too?

Start using Hatena Blog (Free)
What is Hatena Blog?
higepon blog higepon blog

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe