Skip to content

Add Shelf Framework #10025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Shelf Framework #10025

wants to merge 1 commit into from

Conversation

felangel
Copy link

@felangel felangel commented Aug 3, 2025

Response _handler(Request request) {
switch (request.url.path) {
case 'json':
return _jsonTest();

Choose a reason for hiding this comment

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

nit: Do we prefer to inline the logic over private functions? From some benchmarks I did ages ago, calling a function over inlining introduces a very minimal delay (when done a lot of times). It was quite minuscule though.

Copy link
Author

Choose a reason for hiding this comment

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

I tried to maintain the same structure as in the pure Dart examples. I wouldn’t expect it to matter since the compiler would likely decide to inline (we can always annotate with @pragma(vm:prefer-inline) if needed).

@iapicca
Copy link
Contributor

iapicca commented Aug 4, 2025

fixes #7493

@felangel @alestiago
you may want to take a look at this workaround to the performance regression

@felangel
Copy link
Author

felangel commented Aug 6, 2025

fixes #7493

@felangel @alestiago you may want to take a look at this workaround to the performance regression

I think we should write idiomatic dart since this aims to be a real world benchmark. Ideally those performance optimizations should be made by the language team 🤷

@alestiago
Copy link

@msmith-techempower could you help with a review? 👀

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.

3 participants