Posts

Showing posts from December, 2020
Share:

Setup Dart Programming Language | Saatody | Amit Padhiyar

In this post, I will describe about how to download and install Dart SDK? Here is the Dart official website . If you want to download Flutter then the Dart will be install default. Otherwise, You can download Dart SDK using command-line tools. Actually, SDK Installation is depending on your operating system. For example: If you want to download Dart SDK for Windows then you can download package from 'Chocolatey Package Manager'. The 'Chocolatey Package Manager' is one kind of package manager tool like NPM for JavaScript, NuGet for .Net and Pub for Dart and Flutter. This how there is different processes available for different operating system. So you can see this documentation  for downloading Dart on your operating system. If you want direct download Dart SDK .ZIP file for your platform then download from here the stable version, beta version and dev version of Dart. You can find the zip files at predictable URLs using the following pattern: https://storage.googleapis

Millions Of Objects Performance In C# WPF | Amit Padhiyar | Saatody

This is little experiment about memory management and time management in WPF while we create millions of objects in small amount of time. Let's see first example while we create one simple class with no properties (empty class). Before we start, we must define some properties in MainWindow. private readonly int TotalObjects = 10000000; private int i = 0; private List<PointClass> Objs = new List<PointClass>(); private Stopwatch Timer = new Stopwatch(); private TimeSpan TS = new TimeSpan(); TotalObjects is variable. And this number used in loop for repeating same process. It means we will create PointClass's object in each cycle and store in Objs List<>. The 'i' is index for loop. Using Stopwatch we will calculate the time and store elapsed time in TimeSpan TS. This experiment uses two loop; 1] for loop and 2] while loop. public class PointClass { } First create empty class. This class hasn't any property. See the below example to see How much time