Files
littlefs/scripts
Christopher Haster b936e33643 Tweaked dbg scripts to resize tag repr based on weight
This a compromise between padding the tag repr correctly and parsing
speed.

If we don't have to traverse an rbyd (for, say, tree printing), we don't
want to since parsing rbyds can get quite slow when things get big
(remember this is a filesystem!). This makes tag padding a bit of a hard
sell.

Previously this was hardcoded to 22 characters, but with the new file
struct printing it quickly became apparently this would be a problematic
limit:

  12288-15711 block w3424 0x1a.0 3424  67 64 79 70 61 69 6e 71  gdypainq

It's interesting to note that this has only become an issue for large
trees, where the weight/size in the tag can be arbitrarily large.

Fortunately we already have the weight of the rbyd after fetch, so we
can use a heuristic similar to the id padding:

  tag padding = 21 + nlog10(max(weight,1)+1)

---

Also dropped extra information with the -x/--device flag. It hasn't
really been useful and was implemented inconsistently. Maybe -x/--device
should just be dropped completely...
2023-10-14 01:25:14 -05:00
..
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2020-11-22 15:05:22 -06:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00
2023-09-15 18:42:48 -05:00