std::function has a notoriously large amount of malloc traffic, whereas function_ref is a cheaper and more efficient alternative.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D77959
[mlir][StorageUniquer] Replace all usages of std::function with function_ref. ClosedPublic Authored by rriddle on Apr 11 2020, 6:38 PM.
Details Summary std::function has a notoriously large amount of malloc traffic, whereas function_ref is a cheaper and more efficient alternative.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 11 2020, 8:29 PM Closed by commit rG1fc6efaf6aaf: [mlir][StorageUniquer] Replace all usages of std::function with function_ref. (authored by rriddle). · Explain WhyApr 11 2020, 11:25 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 256834 mlir/include/mlir/IR/AttributeSupport.h
mlir/include/mlir/Support/StorageUniquer.h
mlir/lib/IR/MLIRContext.cpp
mlir/lib/Support/StorageUniquer.cpp
|