go-tinyqr

An experimental minimal QR Code generator  http://go-qrcode.appspot.com
git clone https://git.ce9e.org/go-tinyqr.git

commit
8b3122768d02500df93e48e1e5dc486fd8842dff
parent
b6ab6a4c0c13fa64de7b079cb9fdb0b98e8152bc
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-03-01 08:53
README: add more information on code reduction

Diffstat

M README.md 19 +++++++++++++++++++

1 files changed, 19 insertions, 0 deletions


diff --git a/README.md b/README.md

@@ -17,6 +17,25 @@ Still, generating QR codes stays complex. I had hoped that I can reduce this
   17    17 down to a small library that can just be copied to a new project. But it is
   18    18 still ~1000 loc.
   19    19 
   -1    20 ## Reduction in code size
   -1    21 
   -1    22 | file       |  old | new | diff |
   -1    23 | ---------- | ---: | --: | ---: |
   -1    24 | gf.go      |   92 |  83 | -10% |
   -1    25 | ecc.go     |  177 | 102 | -42% |
   -1    26 | bitset.go  |  174 |  22 | -87% |
   -1    27 | version.go | 2927 | 416 | -86% |
   -1    28 | render.go  |  439 | 147 | -67% |
   -1    29 | qrcode.go  |  649 | 119 | -82% |
   -1    30 | **total**  | 4528 | 902 | -80% |
   -1    31 
   -1    32 This table compares b6ab6a4 (old) and f88a46e (new). The numbers were measured
   -1    33 using `sloc`. In cases where I combined files I added up the line counts of the
   -1    34 old files.
   -1    35 
   -1    36 The biggest single change is that I was able to remove ~2000 lines of version
   -1    37 information for error correction levels that I didn't use.
   -1    38 
   20    39 ## Links
   21    40 
   22    41 - [ISO/IEC 18004:2006](http://www.iso.org/iso/catalogue_detail.htm?csnumber=43655)