[all-commits] [llvm/llvm-project] 97f433: [BOLT][NFC] Speedup merge-fdata (#119942)

Amir Ayupov via All-commits all-commits at lists.llvm.org
Sat Dec 14 22:26:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97f43364cc8599bfc64f4f83fb81c7cd0242a1a4
      https://github.com/llvm/llvm-project/commit/97f43364cc8599bfc64f4f83fb81c7cd0242a1a4
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-12-14 (Sat, 14 Dec 2024)

  Changed paths:
    M bolt/test/merge-fdata-mixed-bat-no-lbr.test
    M bolt/test/merge-fdata-mixed-mode.test
    M bolt/tools/merge-fdata/merge-fdata.cpp

  Log Message:
  -----------
  [BOLT][NFC] Speedup merge-fdata (#119942)

Eliminate splitting the buffer into lines, and use `std::getline`
directly. Simplify no_lbr and boltedcollection handling as well.

Test Plan: For a large fdata file (200MB), fstream version is ~10%
faster.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list