This short code last for hours.
Make suggestions to speed up.
Thank you.
__END__
This short code last for hours. Make suggestions to speed up. Thank
you.
Please excuse me avoiding mimicking yours Style Guidelines -- I can't
figure out what they are. Second, due to random data being used
measuring performance is kinda dubious. Anyway -- whooping three times faster!
Now, about suggestions. First thing that springs is PDL. Couple of
times I was motivated but never have had time to find out how it works.
One suggestion, if you find yourself moving data to-and-fro PDL, then
abort -- it won't yield anything. Upload datas once, then read results *once*.
The other thing would be gradient descent. I have no slightest idea how
to apply it here though.
Anyway -- whooping three times
faster!
El 23/11/20 a las 10:25, Eric Pozharski escribió:*SKIP*
Second, due to random data being used measuring performance is kinda
dubious. Anyway -- whooping three times faster!
Anyway I find a lot opaque to use bitwise operator to produce the 2^30 combinations. I was thinking in a simple $counter++ and a unpack and
a split i.e.
*SKIP*Now, about suggestions. First thing that springs is PDL.
PDL is out of my simple scope. I could do it all in C (no hashes, no
regex) but I like too much Perl.
El 23/11/20 a las 10:25, Eric Pozharski escribió:
Anyway -- whooping three times faster!Genial! it tooks 74 minutes insstead of 190. I'll publish both
versions in the web with your credit, if you don't worry about.
Thanks.
with <rphk63$1frt$1@gioia.aioe.org> gamo wrote:
El 23/11/20 a las 10:25, Eric Pozharski escribió:
Anyway -- whooping three times faster!Genial! it tooks 74 minutes insstead of 190. I'll publish both
versions in the web with your credit, if you don't worry about.
Web? That's scary. Anyway, CC-BY then, if, of course, it's compatible.
Thanks.
clpm (or should I say -- C.L.P.M.?) rulez!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 376 |
Nodes: | 16 (3 / 13) |
Uptime: | 25:27:04 |
Calls: | 8,036 |
Calls today: | 6 |
Files: | 13,034 |
Messages: | 5,829,274 |