GHunt icon indicating copy to clipboard operation
GHunt copied to clipboard

better version of load_endpoints func

Open kqiq opened this issue 2 years ago • 0 comments

I moved the update of the headers dictionary to the beginning of the function, to avoid creating a new dictionary on each iteration of the loop. I replaced the ext_bin_headers dictionary comprehension with a regular loop and an update to the headers dictionary, which should be faster than creating a new dictionary. I replaced the ** operator with the update() method to merge the dictionaries, which is generally faster than using the ** operator.

kqiq avatar Jan 01 '23 22:01 kqiq