-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Is SharedData
the same as Isolate Groups in Dart v2.15?
#6
Comments
Hi, An I'm looking for the new feature for some time: The new The Dart 1.5+ will increase performance of |
Very interesting read. Based on what I understood in that thread:
Lastly, any plans on updating Thanks! |
Can I see a sample of what you are porting from Java? |
Sure thing. I've put the relevant bits in this gist https://gist.github.com/leovinsen/88fbea883fc426cf224ff702a273bc34 |
FYI: I use this class to "benchmark" code: |
I recommend to reduce your In Java, allocate 64 threads for a 4 core CPU won't be good, but with It's recommended for an application to not allocate all its threads for parallelism, since your device still needs at least 1 core to render UI and OS stuff, and you don't want to see the device to hang. When running a heavy code in a dedicated hardware for that you won't bother to see the OS sometime hang 1/2 of second for accumulated OS things and usually you don't have an UI to render. But for a final user device you can't generate this scenario. |
I changed To be honest, I have not figured the cause of slow performance in my Dart code compared to the Java code. And my benchmark methodology is far from accurate (Dart running on my machine vs a Spring project running on an AWS EC2 instance). Lastly, thank you for sharing your knowledge, it was interesting to learn some things that can't be found on the official Dart docs. I'll try to figure out the problem, and test the latest version of |
You will need: Basically just create a benchmark code, that runs what you want to test intensively and automatically and use the parameter
Then you will see a localhost URL for the Dart VM Observatory. Try the CPU Flame Chart, helps a lot! |
Thanks for the tip, will surely try it. And wish you happy holidays :) |
Thanks. Happy holidays too! |
Hi @gmpassos, I hope you are well. May I ask for your email address? There's something I would like to discuss |
I have just sent you an email... |
First of all, thanks for the great package! Your package has helped me a lot in porting a Java codebase that utilized Thread Pools into Dart code.
In the said codebase, I have used
SharedData
to share huge data structure (aMap
of deeply nested objects) between the isolates. Is it the same as Isolate Groups introduced in Dart 2.15? If it's not, could it theoretically improve the performance ofSharedData
?Thanks!
The text was updated successfully, but these errors were encountered: