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
refactor(ast): cache source lines in transformer to avoid repeated file reads
Previously, `_build_callsite_metadata` opened and read the script file on every invocation,
which occurred frequently during atom lifting and top level function registration. This commit
moves the file read into the transformer's `__init__` method and stores the result in a
`self._source_lines` buffer.
Now, `_build_callsite_metadata` uses this in memory list to resolve the source line for a given
AST node, eliminating repeated disk I/O and improving performance.
0 commit comments