HaxeFoundation / HaxeFoundation/haxe

[analyzer] const propagation for long long string

Open
#6,197 1 comment 0 reactions 1 assignee Claimed by @Simn View on GitHub
feature-analyzer
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

I think it doesn't seem very good.

```haxe
class Main{
static function main() {
var s = "long long string ssssssssssssssssss.....";
trace(s.charAt(0));
trace(s.charAt(1));
}
}
```

Generated with `-D analyzer-optimize`

```js
Main.main = function() {
console.log("long long string ssssssssssssssssss.....".charAt(0));
console.log("long long string ssssssssssssssssss.....".charAt(1));
};
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.