Skip to content

Commit e58bd2f

Browse files
Try skipping create accurate span bc too expensive
1 parent d76ef93 commit e58bd2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/egglog/egraph_state.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ def span(frame_index: int = 0) -> bindings.RustSpan:
3434
If `frame_index` is passed, it will return the span for that frame in the stack, where 0 is the current frame
3535
this is called in and 1 is the parent.
3636
"""
37-
import inspect
37+
# Currently disable this because it's too expensive.
38+
# import inspect
3839

39-
frame = inspect.stack()[frame_index + 1]
40-
return bindings.RustSpan(frame.filename, frame.lineno, 0)
40+
# frame = inspect.stack()[frame_index + 1]
41+
return bindings.RustSpan("", 0, 0)
4142

4243

4344
@dataclass

0 commit comments

Comments
 (0)