04.06.2019, 04:41, "Thiago Macieira" <thiago.macie...@intel.com>: > 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]
This can be done with qmake if we implement ord -- Regards, Konstantin _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development