Natools

Check-in [3a95d52c86]
Login
Overview
Comment:tools/smaz: use the new validation function instead of ad-hoc code
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3a95d52c867f7f19c13715f1567c4ac2f9a4c91a
User & Date: nat on 2016-12-15 20:12:50
Other Links: manifest | tags
Context
2016-12-16
20:55
smaz_generic: optimize compression

For some reason it seems even with -O3, calling Dict_Entry involves a string copy, which makes `memcpy` the larger time consumer of the copmpression algorithm. Inlining it manually improves performance a lot. check-in: 674fadc74b user: nat tags: trunk

2016-12-15
20:12
tools/smaz: use the new validation function instead of ad-hoc code check-in: 3a95d52c86 user: nat tags: trunk
2016-12-14
20:01
smaz_generic: brind the predicate back as a separate function

Since Smaz dictionaries are meant to be global hard-coded constant objects, it makes sense to check the precondition only once, e.g. in a test suite, and not for each and every subprogram call. check-in: ec19d3153c user: nat tags: trunk

Changes

Modified tools/smaz.adb from [7f15ba36a3] to [cd9e4a4669].    [diff]