Artifact
e8cb7a3dc857a3c4db5fbde406fe65d261054e58845086d9a265b891b9fd081c:
- Executable file
modules/textutil/build/alternates/check.sh
— part of check-in
[ee19cd9a40]
at
2022-09-09 10:36:59
on branch trunk
— textutil - string - I - fixed indentation of benchmark code
textutil - wcswidth - I - replaced core type/char functions with new implementations roughly 30x faster.
The new implementation uses a nested binary tree of if commands to quickly bisect the result
domain. Interestingly enough this is faster than using a 2-stage table lookup. And while it is not
as fast as a single-stage table lookup (~45x) it also does not come with the horrendous size
overhead of the same (~120x).
The research leading to this (*) is saved in sub directory `build/alternates`. See
`build/alternates/README.md` for the summary.
(*) Scripts, results (.csv(.xz)), GNUplot configurations, ...
(user:
aku
size: 52)
[more...]
#!/bin/bash
tclsh check/check.tcl i.*/wcswidth.tcl