Здравствуйте, Andy77, Вы писали:
A>кстати, что это за "рекомендации лучших собаководов",
это у Роббинсона, в "Отладке приложений" есть такой пассаж:
/O1 (minimize size)
By default, a project created by the Microsoft Foundation Class (MFC) library AppWizard uses /O2 (maximize speed) for its release-build configurations. However, Microsoft builds all its commercial applications with /O1, and that's what you should be using. What Microsoft has found is that after picking the best algorithm and writing tight code, avoiding page faults can help speed up your application considerably. As I've heard it said, "Page faults can ruin your day!"
Page faults occur when your executing code moves from one page of memory (4 KB for x86 Intel) to the next. To resolve a page fault, the operating system must stop executing your program and place the new page on the CPU. If the page fault is soft, meaning that the page is already in memory, the overhead isn't too terrible—but it's extra overhead nonetheless. If the page fault is hard, however, the operating system must go out to disk and bring the page into memory. As you can imagine, this little trip will cause hundreds of thousands of instructions to execute, slowing down your application. By minimizing the size of your binary, you decrease the total number of pages your application uses, thereby reducing the number of page faults. Granted, the operating system's loaders and cache management are quite good, but why take more page faults than you have to?
A>неужели М$ признаёт наличие кучи багов в VS7/VS2003?
Здравствуйте, Andy77, Вы писали:
A>запустите ЭТО в Debug и Release (default optimization settings) и сравните результаты.
хм, зависит от оптимизации Release, если по умолчанию — Maximize Speed, то разные, а если по рекомендациям лучших собаководов — Minimize Size, то также как в Debug
Здравствуйте, Odi$$ey, Вы писали:
OE>хм, зависит от оптимизации Release, если по умолчанию — Maximize Speed, то разные, а если по рекомендациям лучших собаководов — Minimize Size, то также как в Debug
ну да.
кстати, что это за "рекомендации лучших собаководов", неужели М$ признаёт наличие кучи багов в VS7/VS2003?
Приветствую, земляне!
Не подскажете, где книжкнцию сию можно откопать? stirliz1@gmx.net премного благодарен.
OE>это у Роббинсона, в "Отладке приложений" есть такой пассаж:
OE>
OE>/O1 (minimize size)
OE>By default, a project created by the Microsoft Foundation Class (MFC) library AppWizard uses /O2 (maximize speed) for its release-build configurations. However, Microsoft builds all its commercial applications with /O1, and that's what you should be using. What Microsoft has found is that after picking the best algorithm and writing tight code, avoiding page faults can help speed up your application considerably. As I've heard it said, "Page faults can ruin your day!"
OE>Page faults occur when your executing code moves from one page of memory (4 KB for x86 Intel) to the next. To resolve a page fault, the operating system must stop executing your program and place the new page on the CPU. If the page fault is soft, meaning that the page is already in memory, the overhead isn't too terrible—but it's extra overhead nonetheless. If the page fault is hard, however, the operating system must go out to disk and bring the page into memory. As you can imagine, this little trip will cause hundreds of thousands of instructions to execute, slowing down your application. By minimizing the size of your binary, you decrease the total number of pages your application uses, thereby reducing the number of page faults. Granted, the operating system's loaders and cache management are quite good, but why take more page faults than you have to?
Re[4]: VS7 and VS2003 sucks.
От:
Аноним
Дата:
09.04.04 10:55
Оценка:
Здравствуйте, Odi$$ey, Вы писали:
OE>Здравствуйте, Andy77, Вы писали:
A>>кстати, что это за "рекомендации лучших собаководов",
OE>это у Роббинсона, в "Отладке приложений" есть такой пассаж:
OE>
Intel) to the next. To resolve a page fault, the operating system must stop executing your program and place the new page on the CPU. If the page fault is soft, meaning that the page is already in memory, the overhead isn't too terrible—but it's extra overhead nonetheless. If the page fault is hard, however, the operating system must go out to disk and bring the page into memory.
IMHO это что-то новое в компьютеростроении.
Неужели при проходе каждых 4k возникает Page Fault, даже если страница в памяти?
Что такое Soft Page Fault, Первый раз слышу. IMHO что-то такое можно изобразить, если вставить в комп > 4GB оперативки, но это пока не про нас.
Да, заново транслируются адреса для новой страницы, но это не так смертельно.
Re[5]: VS7 and VS2003 sucks.
От:
Аноним
Дата:
09.04.04 11:29
Оценка:
Здравствуйте, Eduard-x, Вы писали:
EX>Приветствую, земляне! EX>Не подскажете, где книжкнцию сию можно откопать? stirliz1@gmx.net премного благодарен.
Здравствуйте, Максим Зелинский, Вы писали:
МЗ>Здравствуйте, siv, Вы писали:
siv>>Проверил в SP1 — вылечили. МЗ>Уважаемый, а есть смысл в том, что ты поднимаешь трехгодичные темы?
Для меня есть, этого мало?
Здравствуйте, Максим Зелинский, Вы писали:
siv>>Проверил в SP1 — вылечили. МЗ>Уважаемый, а есть смысл в том, что ты поднимаешь трехгодичные темы?
Так ведь SP1 только что выпустили.
Человек проверил — ошибка исправлена. В чем проблема то?
Кстати, надо говорить не "VS7 and VS2003 sucks", а "VS7 and VS2003 suck" или "VS7 sucks and VS2003 sucks".
К тому же, если VS7 — тогда VS7.1;
если VS2003 — тогда VS2002