タグ

libraryとcに関するgemini7のブックマーク (3)

  • Writing a C library, intro, conclusion and errata

    This is a series of blog-posts about best practices for writing C libraries. See below for each part and the topics covered. Table of contentsThe entire series about best practices for writing C libraries covered 15 topics and was written over five parts posted over the course of approximately one week. Feel free to hotlink directly to each topic but please keep in mind that the content (like any

  • The GNU MP Bignum Library

    We're are discontinuing the operation of the huge, diverse GMP test systems setup. The reason is very odd: We can no longer live in the Stockholm house where we have the computers and are therefore selling it. There is a large, insanely aggressive dog roaming the neighbourhood. The dog has a felon owner who is beyond all reason. But surely, the Swedish authorities will take care of the situation?

  • Doug Lea の malloc (dlmalloc) - bkブログ

    Doug Lea の malloc (dlmalloc) 小さなオブジェクトを大量に new しまくるプログラムを C++ で書いたところ、処理時間の多くが malloc() に費やされていることがわかりました。このような場合、自前でメモリ管理を行って最適化するという方法がありますが、なかなか大変です。 そこで、安易に高速な malloc に置き換えてみようということで、 Doug Lea の malloc (通称 dlmalloc) の最新版を試してみました。 dlmalloc の使い方 dlmalloc は 1ファイルをダウンロードしてビルドすれば使えます。次のように実行すると共有ライブラリ libdlmalloc.so を作れます。現時点でのバージョンは 2.8.3 でした。 % wget ftp://g.oswego.edu/pub/misc/malloc.c % gcc -O2

  • 1