タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

C++とcodingに関するakakitのブックマーク (2)

  • GitHub - isocpp/CppCoreGuidelines: The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

    The aim of the guidelines is to help people to use modern C++ effectively. By "modern C++" we mean C++11 and newer. In other words, what would you like your code to look like in 5 years' time, given that you can start now? In 10 years' time? The guidelines are focused on relatively higher-level issues, such as interfaces, resource management, memory management, and concurrency. Such rules affect a

    GitHub - isocpp/CppCoreGuidelines: The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++
  • テキストベース:ITExpress

    先日、あるSIPサーバのC++のソースコードを見たのだが、これは汚いしひどい作りになっていたので驚いてしまった。SIPはテキストベースのプロトコルなので、どうしてもソースコード上も文字列操作が多くなる。この文字列操作というのは曲者で、文字列の比較にせよ、文字列のコピーにせよ、相応のCPU負荷がかかってしまうし、メモリ量への影響も大きい。なので、文字列操作をできるだけ使わなくする処理は重要である。 先ほど書いた、ひどいソースコードというのは、加入者データに関するものだ。大容量のSIPサーバでは、数十万規模の加入者を収容するので、加入者単位で必要とするメモリ量を抑えることでシステム全体のメモリを削減することができ、システム性能にも寄与することができる。このひどいソースは加入者情報をテキストベースで持つてしまっていた。 ある加入者情報の取りうる範囲は10種類程度しかなかったのだが、これをテキスト

  • 1