From c8d827f43bb34d4c6cb91e0de95a090f9bc668a4 Mon Sep 17 00:00:00 2001 From: Mario Rugiero Date: Wed, 15 Nov 2023 16:54:40 -0300 Subject: [PATCH] perf: replace assert with debug_assert for data validation (#686) --- provers/stark/src/table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provers/stark/src/table.rs b/provers/stark/src/table.rs index 2d584abf1..898bef042 100644 --- a/provers/stark/src/table.rs +++ b/provers/stark/src/table.rs @@ -28,7 +28,7 @@ impl<'t, F: IsFFTField> Table { } // Check that the one-dimensional data makes sense to be interpreted as a 2D one. - assert!(crate::debug::validate_2d_structure(&data, width)); + debug_assert!(crate::debug::validate_2d_structure(&data, width)); let height = data.len() / width; Self {