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

Merged
merged 1 commit into from
Aug 11, 2025
Merged

Add Shelf Framework #10025

merged 1 commit into from
Aug 11, 2025

Conversation

felangel
Copy link
Contributor

@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
Contributor 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
Contributor 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? 👀

@msmith-techempower msmith-techempower merged commit 4af4805 into TechEmpower:master Aug 11, 2025
4 checks passed
@msmith-techempower
Copy link
Member

Sorry, was out on holiday last week... catching up today >_<

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.

4 participants