Skip to content

Improve generated vocab performance #336

@berezovskyi

Description

@berezovskyi

The Python script to generate RDF vocab classes should be updated not to generate QName object instances all the time but instead use a lazy-init backing field.

eg instead of

public static QName ActedOnBehalfOf => QNameFor("actedOnBehalfOf");

to use

private static QName? _actedOnBehalfOf;
public static QName ActedOnBehalfOf => _actedOnBehalfOf ??= QNameFor("actedOnBehalfOf");

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions