Skip to content

Optimize PyDBML parsing speed - now is relatively slow (7-8 seconds) #59

Description

@embar-

Parsing DBML syntax takes about 7-8 seconds in my computer using your provided test_schema.dbml or any simple DBML. This parsing time is slow, thus please try reduce it.

E.g. https://github.com/pyparsing/pyparsing/wiki/Performance-Tips proposed to Convert simple Combine() expressions to use Regex().

Below is Python code I used:

import time
from pathlib import Path
from pydbml import PyDBML

start = time.time()
parsed = PyDBML(Path("test_schema.dbml"))
end = time.time()
print("DBML parse time:", end - start)

Activity

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

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