forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 29c3fea into dev
- Loading branch information
Showing
35 changed files
with
820 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# A workflow to close issues where the author hasn't responded to a request for | ||
# more information; see https://github.com/godofredoc/no-response for docs. | ||
|
||
name: No Response | ||
|
||
# Both `issue_comment` and `scheduled` event types are required. | ||
on: | ||
issue_comment: | ||
types: [created] | ||
schedule: | ||
# Schedule for five minutes after the hour, every hour | ||
- cron: '5 * * * *' | ||
|
||
# All permissions not specified are set to 'none'. | ||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
noResponse: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'dart-lang/sdk' }} | ||
steps: | ||
- uses: godofredoc/no-response@0ce2dc0e63e1c7d2b87752ceed091f6d32c9df09 | ||
with: | ||
responseRequiredLabel: "needs-info" | ||
responseRequiredColor: 4774bc | ||
closeComment: > | ||
Without additional information we're not able to resolve this | ||
issue, so it will be closed at this time. You're still free to add | ||
more info and respond to any questions above, though. We'll re-open | ||
the case if you do. Thanks for your contribution! | ||
daysUntilClose: 14 | ||
token: ${{ github.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Global approvers - only to be used as a last resort. | ||
[email protected] #{LAST_RESORT_SUGGESTION} | ||
[email protected] #{LAST_RESORT_SUGGESTION} | ||
[email protected] #{LAST_RESORT_SUGGESTION} | ||
[email protected] #{LAST_RESORT_SUGGESTION} | ||
[email protected] #{LAST_RESORT_SUGGESTION} | ||
[email protected] #{LAST_RESORT_SUGGESTION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
// | ||
// Measure performance of string comparison. | ||
|
||
import 'package:benchmark_harness/benchmark_harness.dart'; | ||
|
||
class LongStringCompare extends BenchmarkBase { | ||
late String s, t; | ||
|
||
String generateLongString() { | ||
var s = "abcdefgh"; | ||
for (int i = 0; i < 20; i++) { | ||
s = "$s ghijkl $s"; | ||
} | ||
return s; | ||
} | ||
|
||
LongStringCompare() : super('LongStringCompare') { | ||
s = generateLongString(); | ||
t = s; | ||
// Difference in two strings goes in the middle. | ||
s += "." + s; | ||
t += "!" + t; | ||
} | ||
|
||
@override | ||
void warmup() { | ||
for (int i = 0; i < 4; i++) { | ||
run(); | ||
} | ||
} | ||
|
||
@override | ||
void run() { | ||
bool b = true; | ||
for (int i = 0; i < 5; i++) { | ||
b &= (s == t); | ||
} | ||
} | ||
} | ||
|
||
void main() { | ||
LongStringCompare().report(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.