We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 761186e commit e61ce6aCopy full SHA for e61ce6a
src/table.rs
@@ -1,4 +1,7 @@
1
-pub const CRC32_TABLE: [[u32; 256]; 16] = [
+// NOTE: This is static instead of const to ensure that indexing into this table
2
+// doesn't result in large memmoves when in debug mode, which can significantly
3
+// impact performance.
4
+pub static CRC32_TABLE: [[u32; 256]; 16] = [
5
[
6
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535,
7
0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd,
0 commit comments