Skip to content

lua again#1179

Open
Frotty wants to merge 1 commit intomasterfrom
nahman
Open

lua again#1179
Frotty wants to merge 1 commit intomasterfrom
nahman

Conversation

@Frotty
Copy link
Copy Markdown
Member

@Frotty Frotty commented Apr 3, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0e12fcb53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1275 to +1279
List<ImClass> classes = new ArrayList<>(prog.getClasses());
classes.sort(Comparator.comparing(this::classSortKey));
for (ImClass candidateClass : classes) {
if (!sharesClosureFamilyAnchor(candidateClass, anchors, new HashSet<>())) {
continue;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Cache closure-family class scan to avoid quadratic compilation

collectEquivalentClosureFamilyMethodNames is called from createMethods for each dispatch group, but it rebuilds and sorts prog.getClasses() and then re-traverses inheritance for every candidate on every call. On projects with many generated closures this turns class-table setup into a repeated whole-program scan and introduces a significant compile-time regression compared to the previous local-hierarchy lookup. Precomputing/caching candidates per closure-family anchor would keep this from scaling with #groups × #classes.

Useful? React with 👍 / 👎.

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