Feng Yuan (袁峰)

CLR, Performance, Debugging, Parallel Computing, WPF, XPS, GDI, GDI+, Printing (www.fengyuan.com)

Posts
  • Feng Yuan (袁峰)

    A 53-digit Palindromic Square Number

    • 1 Comments
    Six years ago I wrote a program to search for palindromic square numbers and other palindromic numbers and found some new palindromic numbers. But with increasing length, the search became longer and longer so I finally gave it up. Recently I got a...
  • Feng Yuan (袁峰)

    STS: A palindromic word I will remember

    • 1 Comments
    Continuing searching palindromic sqaure numbers finds a new record number, a 55 digit parlindromic square: 1373512530649258635292477609 ^ 2 = 1886536671850530641991373196913731991460350581766356881 Quite a few records for other palindromic sequences...
  • Feng Yuan (袁峰)

    (VS2010 Beta1) Native Parallel Programming: ConcRT example -- TwentyFour

    • 0 Comments
    WIth Microsoft Visual Studio 2010, Microsoft is releasing a new set of API for native parallel programming named ConRT (concurrent runtime). The purpose of this blog article is to illustrate the basics of ConcRT programming in VS 2010. We will be using...
  • Feng Yuan (袁峰)

    Windows Graphics Programming: Win32 GDI and DirectDraw (ISBN 0130869856) gets reprinted

    • 7 Comments
    Just worked out a deal with the publisher. Windows Graphics Programming: Win32 GDI and DirectDraw (ISBN 0130869856) is getting reprinted ! So readers can get them without paying high price (current price on amazon.com is $150). The books will be ready...
  • Feng Yuan (袁峰)

    Performance Tips: Faster than StringBuilder?

    • 7 Comments
    The web has tons of articles about how StringBuilder is much faster than string concatenation using '+' operator or String.Concat functions when there are enough strings to ber merged. Here is an MSDN article on this topic: http://support.microsoft.com...
  • Feng Yuan (袁峰)

    Optimize XPS markup

    • 1 Comments
    XPS is hot, so naturally more and more applications will be generating XPS. If your application has access to the XPS Document Writer, then the easiest way to generate XPS is just print to it. But there are cases you may want to generate XPS on your own...
  • Feng Yuan (袁峰)

    Improving CLRProfiler 4: Reducing SampleObject memory consumption by 58%

    • 2 Comments
    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...
  • Feng Yuan (袁峰)

    (VS2010 Beta1) Native Parallel Programming: ConcRT example -- Debugging TwentyFour

    • 2 Comments
    In a previous posting, we presented a simple C++ parallel program TwentyFour, which is based on the new native parallel programming API (ConcRT) introduced in Visual Studio 2010. In this posting, we're going to discuss on how understand the running of...
  • Feng Yuan (袁峰)

    Something useful from 'junk' mails

    • 2 Comments
    With a high school junior in the house, we're receiving tons of 'junk' mails from colleges these days. They usually pile up on the desk until we have time to read and discard them. Today, my wife found something useful, or rather something we have...
  • Feng Yuan (袁峰)

    GDI Font Installation and Printing

    • 2 Comments
    I learned something new about GDI font installation and printing recently. So if you're use functions like AddFontResourceEx or AddFontMemResourceEx to install fonts in your application and your application supports printing, you may want to continue...
  • Feng Yuan (袁峰)

    XPS (XML Pape Specification) 0.75 Spec Released

    • 0 Comments
    Microsoft just released the XPS Specification and Reference Guide today (Sep 13th 2005): http://www.microsoft.com/whdc/xps/default.mspx There are three new specifications for download: Open Packaging Conventions which describe the methods for...
  • Feng Yuan (袁峰)

    Seven Year Itch

    • 6 Comments
    Seven years ago, I was working for Hewlett-Packard on its inkjet printer drivers. Having worked on printer drivers for a few years, I felt that I knew something about GDI that other developers would like to know too, and more importantly I wanted to everything...
  • Feng Yuan (袁峰)

    Zoran announces XPS rendering support for printers

    • 1 Comments
    Sunnyvale, Calif. - January 17, 2005 - Zoran Corporation (Nasdaq: ZRAN) announced that its IPS/XPS interpreter for Microsoft’s new XPS Document format will be available to printer and multifunction peripheral (MFP) manufacturers through an Early Adopter...
  • Feng Yuan (袁峰)

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

    • 0 Comments
    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...
  • Feng Yuan (袁峰)

    Microsoft Digital Document Team at PDC 2005

    • 2 Comments
    Here are the sessions and other activities connected with the Microsoft Digital Document team at PDC 2005: Breakout Sessions DAT304 Unleashing the Power of XPS-Based File Formats for your Application Day/Time: Tuesday, September 13 2:45 PM- 4...
  • Feng Yuan (袁峰)

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

    • 0 Comments
    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...
  • Feng Yuan (袁峰)

    Personal Computers 30 Years Ago

    • 2 Comments
    Last week, close to 20,000 Microsoft employees gathered together at Safeco field to celebrate Microsoft's 30 year anniversary. It was a very cheerful event. This prompted me to search trough my collection of books and magazines to find out what was the...
  • Feng Yuan (袁峰)

    Let's talk about printing at PDC05

    • 2 Comments
    PDC 2005 is just a few days away! Now we can finally talk about digital document/printing under Windows Presentation Foundation(originally known as Avalon) using real code. I will be at the following sessions: Track Lounges: Presentation Hands...
  • Feng Yuan (袁峰)

    Sell your copy of Windows Graphics Programming: Win32 GDI and DirectDraw

    • 1 Comments
    Just before the new year, I noticed a copy of my book was listed on amazon.com for $160 (the listing price of the book is $60). A few days ago when I checked again, it was gone. Some poor guy or poor company paid more than double the original price of...
  • Feng Yuan (袁峰)

    Where are my shirts?

    • 2 Comments
    I ordered my offical Microsoft blue shirts for PDC two weeks ago. But three working days away from PDC, they are nowhere to be seen. Our admin has been on medical leave for two weeks, so I thought they may be delivered to her office and locked up there...
  • Feng Yuan (袁峰)

    Native Office Support for XPS Annouced

    • 0 Comments
    Office just annouced native/direct support for XPS document in Office 12. Read more about it: Jeff Bell's blog: http://blogs.msdn.com/jeff_bell/archive/2005/10/27/485937.aspx Andy Simonds's blog: http://blogs.msdn.com/andy_simonds/archive/2005/10...
  • Feng Yuan (袁峰)

    Proposal of purchase for a tiny piece of real estate

    • 3 Comments
    Just finished writing first draft of a proposal of purchase, for a tiny piece of real estate, 8 square inch, 9.5-inch high ceiling, on your book shelf.
  • Feng Yuan (袁峰)

    Improving CLRProfiler 1: 8.4% Progress Bar Update

    • 0 Comments
    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. ...
  • Feng Yuan (袁峰)

    Improving CLRProfiler 2: 19.7% in TryGetValue

    • 2 Comments
    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...
  • Feng Yuan (袁峰)

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

    • 0 Comments
    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...
Page 2 of 3 (61 items) 123