200sc / bebop

bebop wire format in Go
Apache License 2.0
69 stars 5 forks source link

Feature/multiple array suffix #32

Closed 200sc closed 1 year ago

200sc commented 1 year ago

This changeset:

Closes #31

merlindru commented 1 year ago

I haven't tested this, but I'd love to see this land! Do you want/need me to test it?

merlindru commented 1 year ago

As always, thank you for the incredibly fast turnaround time 😄 And seriously, hats off for maintaining this awesome lib

200sc commented 1 year ago

@merlindru Thanks! Yes, I left it up for you to verify, but if you're happy I'll merge it with a version bump

merlindru commented 1 year ago

Give me a minute to test it out

merlindru commented 1 year ago

@200sc Tested both uint8[][][] and array[array[array[uint8]]], works perfectly fine!

Just for fun, I shoddily tested a nesting of 1024 levels, which resulted in a 20k line file (ls -lh reports it as 29M large) and it was still in the single-digit seconds (for both generating and writing to disc)