On Monday, 3 June 2019 18:04:49 PDT Thiago Macieira wrote: > This script takes a hideously enormous amount of time to run. I hope it's > because that's just a really long line. Found this script that seems to > break every 16 bytes: > https://github.com/sperner/PowerShell/blob/master/HexDump.ps1
BTW, equivalent Perl script that is a single line and runs in 0.357 seconds: map { printf "0x%x, ", ord $_ } split //, <> perl -ne 'map { printf "0x%x, ", ord $_ } split //, <>' < src/corelib/ mimetypes/mime/packages/freedesktop.org.xml | wc 0 1140712 6823656 [xxd runs in 0.23 seconds] -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development