Dart GitHub Bot

Results 101 comments of Dart GitHub Bot
trafficstars

**Summary:** The `Abi` class currently requires parsing a string to obtain the compiled architecture. Exposing the `architecture` property directly would simplify this process and improve code readability.

**Summary:** The issue proposes adding `likely()` and `unlikely()` hints to Dart code to guide the AOT compiler in optimizing branch prediction for performance gains in hot paths. These hints would...

**Summary:** The `RawDatagramSocket` on Windows Desktop fails to close and release resources after receiving a `SocketException`, specifically a "Port Unreachable" ICMP response. This occurs when sending UDP packets to an...

**Summary:** The `ZLibDecoder` in Dart 3.5 incorrectly attempted to read data past the compressed data's trailer, causing a regression. This fix modifies the `ZLibDecoder` to have two modes, one that...

**Summary:** The issue is that using `Uint8List.toJS` in WASM to create a clamped array for image data results in excessive copying, leading to slow performance when loading large images. The...

**Summary:** Dart macros incorrectly add the `abstract` keyword to generated code for sealed classes in Dart 3, leading to compilation errors. This issue arises because sealed classes are implicitly abstract,...

**Summary:** The user is encountering a `RangeError` in the `Uint8List.sublistView` method, indicating an attempt to access an element outside the valid range of the list. This error occurs in the...

**Summary:** The user reports slow performance of Dart FFI code in a microbenchmark that converts an image to grayscale. The benchmark takes 13.6 seconds in Dart, significantly slower than other...

**Summary:** The user requests the ability to initialize a `const` variable using a `switch` expression, which is currently not allowed. This would simplify code compared to nested ternary expressions.

**Summary:** The analyzer incorrectly flags errors when using switch cases with destructured records. Type promotion does not occur for destructured variables, leading to type mismatches even when the case matches...