KEMBAR78
C++版の高速化 by wx257osn2 · Pull Request #27 · reki2000/langs-bench-dijkstra · GitHub
Skip to content

Conversation

wx257osn2
Copy link
Contributor

@wx257osn2 wx257osn2 commented Jul 24, 2022

  • 細かい修正
    • martinus/robin-hood-hashingはもう更新されてないっぽいので後継のmartinus/unordered_denseに更新
    • 1文字の出力に文字列リテラルではなく文字リテラルを使用するように
    • std::greater<Visit>std::greater<>
      • std::greater<> は任意の型を取っていい感じに処理してくれるやつです
    • 行末のゴミを除去する処理を std::string 上ではなく std::string_view 上で行うように
  • 高速化: 入力のパースからループを除去
    • 手元の環境で30ms程度高速化

@wx257osn2 wx257osn2 changed the title C++版の微更新 C++版の高速化 Jul 25, 2022
@reki2000 reki2000 merged commit db6a346 into reki2000:master Jul 31, 2022
@wx257osn2 wx257osn2 deleted the improve-cpp branch July 31, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants