Skip to content

Inlining visualization - #261

Merged
PalumboN merged 6 commits into
mainfrom
inlining-visualization
Aug 11, 2026
Merged

Inlining visualization#261
PalumboN merged 6 commits into
mainfrom
inlining-visualization

Conversation

@PalumboN

@PalumboN PalumboN commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Adding visualization about inlining methods. Check the video where I play with the Inline optimization:

Screen.Recording.2026-08-07.at.15.20.49.mp4

(red nodes means that there are inlining opportunities. This is a recursive method, so there are always any)

@PalumboN
PalumboN requested a review from luc-raz August 7, 2026 18:35
@luc-raz

luc-raz commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Wow, this is amazing for debugging 🚀 🔥

Comment thread Druid/DRInline.class.st
self inline: messageSend ]
sends := cfg messageSends select: [ :send | send hasMissingInlines ].

(sends takeFirst: 3) do: [ :messageSend | self inline: messageSend ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What the constant 3 means here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hehe I'm doing experiments, that 3 is a magic number that makes the inlining strategy useful.
However, I'm changing it for a "better heuristic" 👀

@PalumboN
PalumboN merged commit e7792ec into main Aug 11, 2026
4 checks passed
@PalumboN
PalumboN deleted the inlining-visualization branch August 11, 2026 12:12
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.

2 participants