Skip to content

feat: ignore top objects in several transforms#1064

Merged
josephjclark merged 1 commit intoignore-top-object-add-importfrom
ignore-rules
Oct 10, 2025
Merged

feat: ignore top objects in several transforms#1064
josephjclark merged 1 commit intoignore-top-object-add-importfrom
ignore-rules

Conversation

@doc-han
Copy link
Copy Markdown
Collaborator

@doc-han doc-han commented Oct 10, 2025

Use openfn compile --trace## Short Description

A one or two-sentence description of what this PR does.

Fixes #

Implementation Details

A more detailed breakdown of the changes, including motivations (if not provided in the issue).

QA Notes

List any considerations/cases/advice for testing/QA here.

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to know!):

  • Code generation (copilot but not intellisense)
  • Learning or fact checking
  • Strategy / design
  • Optimisation / refactoring
  • Translation / spellchecking / doc gen
  • Other
  • I have not used AI

You can read more details in our Responsible AI Policy

Release branch checklist

Delete this section if this is not a release PR.

If this IS a release branch:

  • Run pnpm changeset version from root to bump versions
  • Run pnpm install
  • Commit the new version numbers
  • Run pnpm changeset tag to generate tags
  • Push tags git push --tags

Tags may need updating if commits come in after the tags are first generated.

@github-project-automation github-project-automation Bot moved this to New Issues in Core Oct 10, 2025
import { namedTypes as n } from 'ast-types';
import { NodePath } from 'ast-types/lib/node-path';

const IgnoreRules = (path: NodePath<n.Expression>) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Our true and false stuff started confusing me a lot today

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, it's a problem. I'll say this: if we do any more compiler work, we need to make those booleans consistent as a first step.

I'm hoping we can merge down from here, I'm just about to run some tests

@josephjclark
Copy link
Copy Markdown
Collaborator

@doc-han this looks great - --trace now tells me that the final heap memory is down from ~230mb to ~160mb!

Putting all these changes together is an amazing result and a really solid performance boost. Thank you!

@josephjclark josephjclark marked this pull request as ready for review October 10, 2025 16:29
@josephjclark josephjclark merged commit 3d47c8b into ignore-top-object-add-import Oct 10, 2025
6 checks passed
@github-project-automation github-project-automation Bot moved this from New Issues to Done in Core Oct 10, 2025
@josephjclark josephjclark deleted the ignore-rules branch October 10, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants