Settings

Theme

Ask HN: Why does dart –help take 500ms?

1 points by longrod 3 years ago · 2 comments · 1 min read

Reader

Hi,

So I have been playing around with Dart and while it seems cool as a language the tooling performance is absolutely abysmal. As the title says, dart --help takes 500ms just to print the help. I tested it out on Intel & AMD (as if it's such a complex task).

In any case, I also posted an issue in the repo but it was closed with a very vague "it needs to run a bunch of Dart code to print help message and that takes time". [0]

Can someone with more experience in this language explain what I am doing wrong? In comparison, node --help takes 51ms.

I don't think it's such a straining task for it to take this long. Consequently, dart format is also similarly slow taking 300ms to format a file with 3 lines.

The thing I am asking is, is it just me or this is the new norm?

Links in comment.

longrodOP 3 years ago

[0] https://github.com/dart-lang/sdk/issues/50360

Alifatisk 3 years ago

Haven't experienced this issue, I'm running Intel macos.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection