I’m not sure that is the fix.
If I do
[code]Dim mb As New MemoryBlock(2)
mb.Byte(0) = Bitwise.BitOr(mb.Byte(0), 32)
Dim a, b, c, d As String
Dim points() As Boolean = Array (True, False, False, False, True, False, True, True, False, False, True, False, False, True, True) // 100010110010011
System.DebugLog(“INPUT: 100010110010011”)
'a = EncodedBytesStringFromPointsOLD(points())
b = EncodedBytesStringFromPoints(points())
'c = EncodedInvertedBytesStringFromPointsOLD(points())
'd = EncodedInvertedBytesStringFromPoints(points())
display(a)
display(b)
display©
display(d)
'quit[/code]
I still see a huge drop.
22:23:14 : INPUT: 100010110010011
NEW: 44.05762
22:23:16 : INPUT: 100010110010011
NEW: 12.63672
Even when calling just
a = EncodedBytesStringFromPointsOLD(points())
which doesn’t use bitwise with the dim and bitwise commented out from the top of the button I see a huge speed improvement between the two calls.