Feng Yuan (袁峰)

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

Browse by Tags

Tagged Content List
  • Blog Post: 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...
  • Blog Post: Source code for Windows Graphics Programming: Win32 GDI and DirectDraw

    Source code for Windows Graphics Programming: Win32 GDI and DirectDraw used to be on http://safariexamples.informit.com/0130869856/ . But link has been broken for quite sometimes. I've received a few emails from readers who has lost the CD of the book. If you need the source code, here is it: www...
  • Blog Post: Anatomy of STL Vector: Data Size

    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 internal structure of vector<short:> ...
  • Blog Post: Anatomy of STL vector: Module Size

    If you need a dynamic array in C++, a widely used class is the vector template class in STL. There are even books recommending replacement of plain C++ array with STL vector. This series is going to look at how STL vector is implemented and what is the cost associated with using STL vector. ...
Page 1 of 1 (4 items)