Skip to content

Auto-exclude hidden names - #18

Open
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:auto-exclude-hidden-names
Open

Auto-exclude hidden names#18
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:auto-exclude-hidden-names

Conversation

@slburson

@slburson slburson commented Jul 3, 2026

Copy link
Copy Markdown

See Claw #31 for explanation.

This PR also fixes a severe performance bug (LibTorch now runs 7x faster — 10 minutes instead of over an hour).

Also, improve diagnostic infrastructure, and fix a severe performance
bug (LibTorch now runs 7x faster).
Comment thread src/shaking.c
Comment on lines -302 to +326
resect_filter_status filter_status = resect_cursor_filter_status(shaking_context->filtering, cursor);

bool node_existed = resect_decl_graph_has_node(shaking_context->decl_graph, decl_id);
if (!node_existed) {
resect_filter_status filter_status = resect_cursor_filter_status(shaking_context->filtering, cursor);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the performance fix. In the course of testing the above, I noticed that resect_cursor_filter_status was being called more than once per symbol — and of course it's quite expensive since it's doing a bunch of regex matching. I started to add a cache to it, then noticed there already was one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant