You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When implementing a library that builds on top of SWC, we need to generate intermediary representations. This probably includes HashMaps or Vecs, which can benefit from a performance increase when initialized with the right capacity.
SWC should provide at least the following counts:
node count (a count for all AST nodes)
definition count (a count for all definitions, like functions and classes)
export count (a count for all export specifiers)
Babel plugin or link to the feature description
No response
Additional context
This should not be implemented as a separate pass because it would be wasteful. This should be implemented at the parser level and I'm willing to contribute this.
The text was updated successfully, but these errors were encountered:
I think that a new function on the Parser could do: parse_module_with_metadata. This would return a struct with a Module field and a Metadata field. In the parser implementation, this would use a const boolean generic to ensure that the compiler optimizes the metadata creation out if it wasn't requested
Describe the feature
When implementing a library that builds on top of SWC, we need to generate intermediary representations. This probably includes HashMaps or Vecs, which can benefit from a performance increase when initialized with the right capacity.
SWC should provide at least the following counts:
Babel plugin or link to the feature description
No response
Additional context
This should not be implemented as a separate pass because it would be wasteful. This should be implemented at the parser level and I'm willing to contribute this.
The text was updated successfully, but these errors were encountered: