]> git.saurik.com Git - wxWidgets.git/commit
Fix huge performance problem in wxStdInputStream when using MSVC8/9.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Feb 2012 14:18:37 +0000 (14:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Feb 2012 14:18:37 +0000 (14:18 +0000)
commit0e3b10c509e31c9ee0b435bd611753ecea4f3740
tree4bd3fbd9992b374074075606164dabc7c8fce3fb
parentfc12b1f12a26bfa569bbfe2af10af3e5352b6fd4
Fix huge performance problem in wxStdInputStream when using MSVC8/9.

Our overridden xsgetn() method was never called when using these compilers
because they used their own, non-standard, _Xsgetn_s() instead. Because of
this the stream was always read character by character which was very
inefficient.

Fix the problem by overriding _Xsgetn_s() for these compilers and explicitly
forwarding it to xsgetn().

Closes #13926.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/stdstream.h