diff options
| author | Jack Koenig | 2021-12-17 09:25:38 -0800 |
|---|---|---|
| committer | GitHub | 2021-12-17 09:25:38 -0800 |
| commit | 02e46bdb40b76c9f7803dd1ae4f18b388f9d55a4 (patch) | |
| tree | dad3b3f3c153831c33ae100aea659275f7284e3a /src/main/scala/firrtl/package.scala | |
| parent | 090110cce588fa4ea316a7bc4a65f84b9f8fd126 (diff) | |
Modify and optimize performance of propagate annotations (#2393)
* Change AnnotationSeq underlying from List to Seq
It was nothing but pointless copying.
* Make propagateAnnotations faster
There was lots of expensive logic for very little benefit.
Diffstat (limited to 'src/main/scala/firrtl/package.scala')
| -rw-r--r-- | src/main/scala/firrtl/package.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/package.scala b/src/main/scala/firrtl/package.scala index adaddeda..844d84ec 100644 --- a/src/main/scala/firrtl/package.scala +++ b/src/main/scala/firrtl/package.scala @@ -7,7 +7,7 @@ package object firrtl { private val _dummyForms = firrtl.stage.Forms implicit def seqToAnnoSeq(xs: Seq[Annotation]) = AnnotationSeq(xs) - implicit def annoSeqToSeq(as: AnnotationSeq): Seq[Annotation] = as.underlying + implicit def annoSeqToSeq(as: AnnotationSeq): Seq[Annotation] = as.toSeq /* Options as annotations compatibility items */ @deprecated("Use firrtl.stage.TargetDirAnnotation", "FIRRTL 1.2") |
