Drawing bearing and distance property line using C#/SVG/IE9/Visio (V2)

Here is expanded version of  my little C# program which converts property description in bearing and distance to SVG, which can then be viewed by IE9 or imported into Microsoft Visio: Program.cs (attached) New features: endpath command to end a path with stroking closepath command to end a path with stroking and filling p command to store…

0

Drawing bearing and distance property line using C#/SVG/IE9.

If you read an official property legal desciption, property line are often described using bearing and distance. Here is an example: BEGINGING AT THE NORTHWEST CORNER OF SAID SOUTHWEST QUARTER OF THE SOUTHWEST QUARTER OF SECTION 9; THENCE SOUTH 89°35’11” EAST; 246.35 FEET ALONG THE NORTH LINE THEREOF; THENCE SOUTH 19°38’26” EAST, 36.08 FEET; ……

0

EWD637: Three Golden Rules for Successful Scientific Research

Here is something I read in graduate school and still thinks about from time to time: Edsger W. Dijkstra’s Three Golden Rules for Successful Scientific Research: Raise your quality standards as high as you can live with, avoid wasting your time on routine problems, and always works as closely as possible at the boundary of your…

0

Optimization Note (C++) 1: push, pop, call _chkstk

I was looking at assembly code trying to improve an important performance scenario when I found a strange call to _chkstk 011E100E push 10h 011E1010 pop eax 011E1011 call _chkstk (011E1810h) 011E1016 mov ecx,esp My understanding is that _chkstk call is generatesd by C++ compiler when there are more than 4kb local variable allocation. But…

0

Improving CLRProfiler 4: Reducing SampleObject memory consumption by 58%

In the previous three posts, we managed to double the speed of file loading time of CLRProfiler through profile-guided optimization in three simple steps. Now let’s take a look at reducing CLRProfiler’s memory consumption, making it more useful to real world applications. I managed to create a 10-Gb profile using a performance test. The test program…

2

Improving CLRProfiler 3: Double the speed of profile loading

In the first step of profile-guided optimization, we reduced tatal CPU sample of ReadNewLog.ReadFile from 6,223 samples to 5,803 samples; the second step reduced it further to 3,982. Would it be nice if we can reduce it to below 3,111 samples, essentially doubling the speed of CLRProfiler’s profile loading? The biggest target now are ReadChar…

1

Improving CLRProfiler 2: 19.7% in TryGetValue

Playing with Visual Studio 2010 profiler data Function Code View finds another easy target for improvement: 19.7% in calling TryGetValue on a Dictionary object: This piece of code is called in ‘c’ command process for logged method call information. There are just millions of method calls in the profile we’re testing with. The code uses…

2

Improving CLRProfiler 1: 8.4% Progress Bar Update

Being a CLR performance dev, it seems that CLR profiler will be a very useful. So now I’m trying to understand it inside out, and may be even make some improvement to it. Here are the steps I’m taking: Download CLR profiler 4.0 source code. Unzip, open solution using Visual Studio 2010, making a few…

0

New Job: CLR performance team

I switched job to CLR performance team last August. Now I’m working on something which has huge customer impact, needs tons of technical depth, and fits my long time passion as an old practicing programmer (I still have 30-year source code listing from my college senior year to proof it). This should be fun. Related blogs:…

3