Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
raw byte of integer
#4
Thanks!
That worked but it was even slower after I finally got it all in place. I tried upshifting by multiply by 256 (vs << 8) and capping the result back to 32 bits but it choked on that too.
I found a tool that will do it but they somehow made it even slower: crccheck 21 seconds / million
so far my only win was to cut out calls to 'ord(char)' which somehow takes all day to covert a letter to its numeric format (which it already was in internally, ?!).
I feel like I am missing something really dumb here. Is there an enable optimize flag when you run or something that I left off?
target work will have to do 70M (each calling crc 2x) at times and need to be virtually instant for 1 at a time requests too. Its probably ok on the 1x1s from a realistic look but the bulk runs will be like a 1980s overnight job at this rate (this is a small part of the process).
Reply


Messages In This Thread
raw byte of integer - by jonnin - Jul-21-2019, 03:08 PM
RE: raw byte of integer - by jonnin - Jul-21-2019, 07:31 PM
RE: raw byte of integer - by scidam - Jul-21-2019, 11:25 PM
RE: raw byte of integer - by jonnin - Jul-22-2019, 12:49 AM
RE: raw byte of integer - by jonnin - Jul-22-2019, 03:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  'utf-8' codec can't decode byte 0xe2 in position 122031: invalid continuation byte tienttt 12 11,356 Sep-18-2020, 10:10 PM
Last Post: tienttt
  'utf-8' codec can't decode byte 0xda in position 184: invalid continuation byte karkas 8 31,479 Feb-08-2020, 06:58 PM
Last Post: karkas
  4 byte hex byte swap from binary file medievil 7 21,937 May-08-2018, 08:16 AM
Last Post: killerrex

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020