Skip to content

Commit 9045af4

Browse files
committed
Expand on the changes from quote!.
1 parent 40cd4e4 commit 9045af4

File tree

1 file changed

+4
-0
lines changed
  • collector/benchmarks/tt-muncher/quote-1.0.17-modified/src

1 file changed

+4
-0
lines changed

collector/benchmarks/tt-muncher/quote-1.0.17-modified/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ pub mod spanned;
121121
// this `tt-muncher` benchmark. It is quadratic in the length of the input and
122122
// stresses the macro expansion machinery. It is representative of TT munchers
123123
// in general, a macro type that is reasonably common.
124+
//
125+
// The original `quote` uses an advanced and unusual technique to avoid this
126+
// quadratic behaviour, which means it is not representative of TT munchers.
127+
// Hence this modification.
124128
#[macro_export]
125129
macro_rules! quote_tt {
126130
() => {

0 commit comments

Comments
 (0)