From 3f5204aff604140be4c2cf5f6948139f516104cc Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 8 Aug 2007 22:38:30 +0000 Subject: [PATCH] removed some invariant checks that are expensive --- src/torrent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 509753814..baded7160 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1109,7 +1109,7 @@ namespace libtorrent void torrent::set_piece_priority(int index, int priority) { - INVARIANT_CHECK; +// INVARIANT_CHECK; assert(valid_metadata()); if (is_seed()) return; @@ -1125,7 +1125,7 @@ namespace libtorrent int torrent::piece_priority(int index) const { - INVARIANT_CHECK; +// INVARIANT_CHECK; assert(valid_metadata()); if (is_seed()) return 1;