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
If the caller prefers to delegate file reading to the NodeJS layer and/or has a custom workflow, it can save CPU cycles to pass the data into SWC directly as a UTF-8 encoded Buffer instead of transcoding the internal UTF-16 representation to UTF-8 (or vice versa).
My primary use case is with a flow where I:
Read raw text from disk to a Buffer
Call parse() and get back a serialized AST
Call transform() multiple times with different options, using the AST from (2)
Write the results to disk
All of the transfers between the NodeJS process and SWC would be more efficient if I could pass the data as Buffer instead of string.
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the feature
If the caller prefers to delegate file reading to the NodeJS layer and/or has a custom workflow, it can save CPU cycles to pass the data into SWC directly as a UTF-8 encoded Buffer instead of transcoding the internal UTF-16 representation to UTF-8 (or vice versa).
My primary use case is with a flow where I:
All of the transfers between the NodeJS process and SWC would be more efficient if I could pass the data as
Buffer
instead ofstring
.Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: