You can compare ordinary arrays lexicographically using memcmp, which is often highly-optimized for whatever system you're on. Depending on exactly how you bitpack the arrays, memcmp may or may not work. It would helpful if the docs mentioned whether memcmp worked with PackedArray. Ideally it would, and maybe the arrays could implement operator<=> or a compare method.
You can compare ordinary arrays lexicographically using
memcmp, which is often highly-optimized for whatever system you're on. Depending on exactly how you bitpack the arrays,memcmpmay or may not work. It would helpful if the docs mentioned whethermemcmpworked withPackedArray. Ideally it would, and maybe the arrays could implementoperator<=>or acomparemethod.