andrebreis / cascade-study

4 stars 3 forks source link

Better bitstring use #30

Closed andrebreis closed 5 years ago

andrebreis commented 5 years ago

Add an extension to the bitstring class to allow direct access to bits using the [] operator but returning 0 or 1 instead of current boolean.

Confirm if this improves run time

andrebreis commented 5 years ago

booleans can actually be used as int (True = 1 and False = 0)