Opened 12 years ago

Closed 12 years ago

#22 closed enhancement (fixed)

crawler: build hashblob without decoding b32hashes over and over again

Reported by: wander Owned by:
Priority: must-have Component: crawler
Keywords: Cc:

Description

Keep binary of decoded b32hashes in memory.

Change History (1)

comment:1 Changed 12 years ago by wander

Resolution: fixed
Status: newclosed

(In [405]) - Passes hashlist (list of decimal numbers of hash ranges) instead of b32hash tuples to nsec3breaker, retrieves hashblob as before
-> closes #22

  • Replaced all occurrences of b32hashes with new object NSECName

-> NSECName contains .b32name (as returned by b32decode(..., base32hex=True) and .decname (list of decimal numbers [0-255])
-> call str(nsecname) on each occurrence before passing as argument to SQL
-> all standard comparison operations <, >, <=, >=, ==, != work as before with b32hashes

This is a kind of extensive change and Python's duck typing is not exactly helpful. Bugs may have been introduced :/

Note: See TracTickets for help on using tickets.