Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message_add 関数をC++機能でリファクタリングする #1026 #1028

Merged

Commits on May 4, 2021

  1. [Refactor] メッセージ履歴の処理をC++機能で書き直す

    現在のメッセージ履歴の処理は自前でメッセージ保存用リングバッファと
    メッセージを指すポインタのリングバッファを管理しており、およそ
    人間の読めるコードではない。
    dequeとstringを使用して分かりやすく書き直す。
    habu1010 committed May 4, 2021
    Configuration menu
    Copy the full SHA
    3f5ea18 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. [Feature] メッセージ履歴内の同一メッセージを共有する

    std::shared_ptr を用いて、同一のメッセージの場合はメッセージ領域を共有する。
    メッセージの検索には std::map を使用し、O(log(N))で検索できるようにする。
    habu1010 committed May 5, 2021
    Configuration menu
    Copy the full SHA
    499cf9b View commit details
    Browse the repository at this point in the history