binocle icon indicating copy to clipboard operation
binocle copied to clipboard

Find patterns to set width (and stride ?)

Open flip111 opened this issue 2 years ago • 1 comments

Could the program do a simple (but possible computational expensive) computation to look for repeating patterns?

With as input parameters:

  • offset (byte 0 to filesize)
  • stride (from 1 to maybe half the filesize, or 25%)
  • pattern length (span of bytes)

Result of search could be: Found pattern with length of 3 bytes, repeated 100 times with stride 20

Then width of can set equal to stride and the same kind color of pixels should show up as a vertical line.

In case of many patterns found they can be sorted by something like: pattern length * length

flip111 avatar Apr 04 '22 17:04 flip111

Interesting idea. I think this should be prototyped in an external script/experiment first.

sharkdp avatar Apr 18 '22 20:04 sharkdp