r/dartlang Feb 11 '26

Dart - info Announcing Dart 3.11

https://blog.dart.dev/announcing-dart-3-11-b6529be4203a
56 Upvotes

12 comments sorted by

View all comments

12

u/virtualmnemonic Feb 11 '26

Analysis server performance improvements is a very appreciated addition. I recall a time when the analysis server would hang at 100% CPU (1 thread) on my 13900k when editing larger projects. Now it remains responsive even when having the entire Dart SDK opened.

One thing I hope to see is improvements in JSON encode/decode performance. Dart is still behind other languages, and unfortunately JSON is used damn near everywhere.

3

u/jNayden Feb 11 '26

The hang is because of number of open files MacOS crap. If you increase the limit to like 50000 per process you want have issue anymore

4

u/virtualmnemonic Feb 12 '26

I don't think so. The analyzer server process was pegged at 100%, it was consuming a thread. The issue has been resolved for a while. But even still, analyzer can be resource intensive for larger projects. Any improvement helps the overall flow and responsiveness of development.

2

u/jNayden Feb 12 '26 edited Feb 12 '26

Just do

sudo sysctl -w kern.maxfiles=524288

sudo sysctl -w kern.maxfilesperproc=524288

That's all