Skip to content

Conversation

@runpinglai-creator
Copy link
Contributor

In PR#3276, we found a MACRO usecase which wasn't listed before. Therefore adding this usecase and explainations of it in the doc.

Basically, it would be ok to use MACRO for a constant if it would be referenced massive times and it would be bad to use FUNCTION for it which will bring massive performance overhead since SQL FUNCTION can't do inlining.

Welcome to Perfetto!
Make sure your PR has a bug/issue attached or has at least
a clear description of the problem you are trying to fix.

For more details please see
https://perfetto.dev/docs/contributing/getting-started

In PR#3276, we found a MACRO usecase which wasn't listed before.
Therefore adding this usecase and explainations of it in the doc.

Basically, it would be ok to use MACRO for a constant if it would be
referenced massive times and it would be bad to use FUNCTION for it
which will bring massive performance overhead since SQL FUNCTION can't
do inlining.
@runpinglai-creator runpinglai-creator merged commit 0ce5e90 into main Oct 15, 2025
15 checks passed
@runpinglai-creator runpinglai-creator deleted the dev/runpinglai/update_SQL_doc branch October 15, 2025 17:25
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