mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Add comment about previous perf-related commit
This commit is contained in:
1 parent
3bf9573653
commit
c4cc0f4177
1 file changed
+3
@@ -205,6 +205,9 @@ pri func decoder.decode_blocks?(dst base.io_writer, src base.io_reader) {
|
||||
// TODO: "if status.is_error()" is probably more idiomatic, but for
|
||||
// some mysterious, idiosyncratic reason, performs noticably worse
|
||||
// for gcc (but not for clang).
|
||||
//
|
||||
// See git commit 3bf9573 "Work around strange status.is_error
|
||||
// performance".
|
||||
if not status.is_ok() {
|
||||
return status
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user