Sign in
Feng Yuan (袁峰)
CLR, Performance, Debugging, Parallel Computing, WPF, XPS, GDI, GDI+, Printing (www.fengyuan.com)
Options
Blog Home
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
C#
C++
CLR
CLRProfiler
GIS
IE9
Pages
Parallel Computing
Performance
Printing
SVG
Visio
Win32
XPS
XPS, Printing
Archive
Archives
September 2012
(1)
August 2012
(4)
July 2012
(1)
June 2011
(1)
May 2011
(1)
April 2011
(2)
March 2011
(5)
June 2009
(2)
January 2008
(2)
May 2007
(3)
April 2007
(2)
March 2007
(6)
February 2007
(1)
August 2006
(3)
May 2006
(3)
April 2006
(2)
March 2006
(3)
February 2006
(1)
January 2006
(5)
October 2005
(1)
September 2005
(12)
June 2004
(1)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Feng Yuan (袁峰)
Improving CLRProfiler 4: Reducing SampleObject memory consumption by 58%
Posted
over 2 years ago
by
Feng Yuan
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 (袁峰)
Improving CLRProfiler 2: 19.7% in TryGetValue
Posted
over 2 years ago
by
Feng Yuan
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 (袁峰)
Performance Tips: System.Text.StringBuilder and String.Concat
Posted
9 months ago
by
Feng Yuan
2
Comments
Much has been written about the benefits of using StringBuilder over string concatenation. So much so that there seems to be overuse of StringBuilder class, causing performance issues again. If you're using StringBuilder and string concatenation a...
Feng Yuan (袁峰)
The benefit of having your own office
Posted
over 7 years ago
by
Feng Yuan
2
Comments
The benefit of having your own office, or at least one of them, is that you can have your own $29 IKEA armchar:
Feng Yuan (袁峰)
Let's talk about printing at PDC05
Posted
over 8 years ago
by
Feng Yuan
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 (袁峰)
Where are my shirts?
Posted
over 8 years ago
by
Feng Yuan
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 (袁峰)
Personal Computers 30 Years Ago
Posted
over 8 years ago
by
Feng Yuan
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 (袁峰)
Microsoft Digital Document Team at PDC 2005
Posted
over 8 years ago
by
Feng Yuan
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 (袁峰)
Printing to legacy devices in Windows Presentation Foundation
Posted
over 8 years ago
by
Feng Yuan
2
Comments
In the two previous postings, we discussed about two different ways of generating XPS (XML Paper Specification) Documents, one being printing to XPS Document Writer from Win32 applications, and the other being using the new WPF (Windows Presentation Foundation...
Feng Yuan (袁峰)
GDI Font Installation and Printing
Posted
over 7 years ago
by
Feng Yuan
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 (袁峰)
Trobleshooting Printing Fidelity Problems
Posted
over 7 years ago
by
Feng Yuan
2
Comments
It's not uncommon to have a print-out from your printer not matching what do you see on screen. Printing is a quite complicated process with multiple players involved. So it's not an easy job to figure out who is at fault, either to find a workaround...
Feng Yuan (袁峰)
XPS document with 100,000 pages?
Posted
over 6 years ago
by
Feng Yuan
2
Comments
Once a simple document format like XPS is created, it takes on a life of its own. Seeing the beauty of XPS, people are converting documents from differenent sources to XPS. People are trying to create XPS document with 10,000 pages, and even pushing for...
Feng Yuan (袁峰)
Something useful from 'junk' mails
Posted
over 6 years ago
by
Feng Yuan
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 (袁峰)
Another Ph.D for Bill Gates
Posted
over 6 years ago
by
Feng Yuan
2
Comments
On April 19th, Bill Gates has been awarded a honorary Ph.D degree by Tsinghua University ( http://en.wikipedia.org/wiki/Tsinghua_University) , the best engineering school in China.
Feng Yuan (袁峰)
XPS at Winhec 2007
Posted
over 6 years ago
by
Feng Yuan
1
Comments
Today (May 15, 2007) is the first day of Winhec 2007. If you're application developers, printer/scanner/multi-functional device vendors, you may be interested in the following XPS related sessions. CLN-T370 XPSDrv: Best Practice using Print Verifier...
Feng Yuan (袁峰)
XPS Performance
Posted
over 6 years ago
by
Feng Yuan
1
Comments
There will be two XPS related sessions at Winhec 2007 tomorrow, focusing on Performance Optimization for XPS Document. The techincal presentation (CLN-T371 ) will be at 8:30am to 9:30am in Room 502AB. Shortly after that (9:45 to 10:45), there will...
Feng Yuan (袁峰)
Anatomy of STL Vector: Data Size
Posted
over 6 years ago
by
Feng Yuan
1
Comments
In the last post, we discussed the cost of using STL vector to module size. Now let’s take a look at how STL vector manages its data. Dia2Dump (Source code available in Microsoft Visual Studio 8\Dia SDK\Samples\Dia2Dump directory) shows the following...
Feng Yuan (袁峰)
Sell your copy of Windows Graphics Programming: Win32 GDI and DirectDraw
Posted
over 7 years ago
by
Feng Yuan
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 (袁峰)
Optimize XPS markup
Posted
over 7 years ago
by
Feng Yuan
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 (袁峰)
Zoran announces XPS rendering support for printers
Posted
over 7 years ago
by
Feng Yuan
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 (袁峰)
Improving CLRProfiler 3: Double the speed of profile loading
Posted
over 2 years ago
by
Feng Yuan
1
Comments
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...
Feng Yuan (袁峰)
TextWriter.WriteLine(string, object[]) in less memory, less time
Posted
9 months ago
by
Feng Yuan
1
Comments
I found myself increasingly generating reports in .csv format, and then use Excel to analyze the reports. With large amount of data written to the .csv file, file generation time becomes more and more noticable. So I took some time to check what is taking...
Feng Yuan (袁峰)
A 53-digit Palindromic Square Number
Posted
over 5 years ago
by
Feng Yuan
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
Posted
over 5 years ago
by
Feng Yuan
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
Posted
over 4 years ago
by
Feng Yuan
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...
Page 2 of 3 (61 items)
1
2
3