-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refractored add references functions to greatly improve xml import speed. #1111
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,7 +380,7 @@ class NodeIdType(IntEnum): | |
_NodeIdType = NodeIdType # ugly hack | ||
|
||
|
||
@dataclass(frozen=True, eq=False, order=False) | ||
@dataclass(slots=True, frozen=True, eq=False, order=False) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remember we considered using slot instead of our custon frozen thing. We had some reasons for not using it...not remembering what... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Slots help, but it was not the biggest improvement. Will revert this |
||
class NodeId: | ||
""" | ||
NodeId Object | ||
|
@@ -390,16 +390,6 @@ class NodeId: | |
namespaceidx(int): The index of the namespace | ||
nodeidtype(NodeIdType): The type of the nodeid if it cannot be guess or you want something | ||
special like twobyte nodeid or fourbytenodeid | ||
|
||
|
||
:ivar Identifier: | ||
:vartype Identifier: NodeId | ||
:ivar NamespaceIndex: | ||
:vartype NamespaceIndex: Int | ||
:ivar NamespaceUri: | ||
:vartype NamespaceUri: String | ||
:ivar ServerIndex: | ||
:vartype ServerIndex: Int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you remove documentation? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doc was redundant with the Args: above, also it does not match the dataclass argument list There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a special format to generate documentation automatically. better to update it than remove it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do. |
||
""" | ||
|
||
Identifier: Union[Int32, String, Guid, ByteString] = 0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that help?
I have been considering doing that in main library but i thought someone concluded it does not help much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, from my tests this helps.