Skip to content

Avoid scala runtime reflection within 2.13.x Scaladoc implementation #560

Closed
@retronym

Description

@retronym

Our homebrew HTML DSL avoids some boilerplate by reflecting on the field names of the HTML ADT.

Our compiler benchmark typically don't load scala runtime reflection. Doing so loads extra subclasses of Symbol, which could make some methods harder for JIT to devirtualize.

Maybe I'm being paranoid, but I'd sleep better if we used Java reflection, or some boilerplate, instead.

Actually, on re-starring we'll get productElementName, which might do the trick.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions