Skip to content

increase speed 50x with using set() #28

@plaber

Description

@plaber

if you change some code to cache list of wallets in ram

	line = open('bit.txt').readlines();
	line.sort()
	lset = set(line)
	while True:
		i=i+1
                ..................skip some code.....................
		#print ('Worker '+str(r)+':'+ str(i) + '.-  # '+pub + ' # -------- # '+ priv+' # ')
		pub = pub + '\n'
		if pub in lset:
			msg = "\nPublic: " + str(pub) + " ---- Private: " + str(priv) + "YEI"
			text = msg

now it show 1200 K/s instead of 45 K/s for list of 1M wallets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions