Browse Source

Use dict to speed up record search

This dict is created earlier, presumably to speed up this exact lookup, but it was using the list form instead, requiring a linear scan for each item.
pull/518/head
Maik Zumstrull 6 years ago
committed by GitHub
parent
commit
f590f201ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      octodns/provider/cloudflare.py

+ 1
- 1
octodns/provider/cloudflare.py View File

@ -585,7 +585,7 @@ class CloudflareProvider(BaseProvider):
changed_records = {c.record for c in changes}
for desired_record in desired.records:
if desired_record not in existing.records: # Will be created
if desired_record not in existing_records: # Will be created
continue
elif desired_record in changed_records: # Already being updated
continue


Loading…
Cancel
Save