Skip to content

Enhancement: Normalize DNS names at write-time and eliminate fallback scans #43

Description

@joyider

Summary

The memory store currently performs fallback case-insensitive scans when exact lookups fail.

Problem

Read-path lookups may iterate over record collections to find case-insensitive matches.

This increases CPU usage and adds avoidable work to every query.

Proposed solution

Normalize all stored names during write operations.

Suggested normalization:

strings.ToLower(dns.Fqdn(name))

After normalization, lookups can rely entirely on exact key matches.

Remove fallback case-insensitive scans from query processing.

Expected benefits

  • Faster record lookups
  • Reduced CPU usage
  • Simpler lookup logic
  • Better scalability

Priority

Medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions