[
https://issues.apache.org/jira/browse/XERCESC-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17005368#comment-17005368
]
Pawel D. Mitka commented on XERCESC-2157:
-----------------------------------------
This issue is related to: https://issues.apache.org/jira/browse/XERCESC-2131
which is a significant performance impact. I fully support avoiding RTTI in
Xerces-C.
> Xerces C++ rtti requirement.
> ----------------------------
>
> Key: XERCESC-2157
> URL: https://issues.apache.org/jira/browse/XERCESC-2157
> Project: Xerces-C++
> Issue Type: Wish
> Affects Versions: 3.2.2
> Reporter: Philip Armstrong
> Priority: Minor
> Attachments:
> 0001-Change-dynamic_casts-to-virtual-methods-to-avoid-the.patch
>
>
> The change introduced in XERCESC-2088 - Fix undefined casting behavior in DOM
> means that Xerces now requires rtti to build. Previously Xerces made a point
> of not requiring rtti and this was one of the reasons we used it.
> As requested in the comments to that issue, attached is a small patch which
> shows our approach to eliminating the need for rtti, whilst keeping the same
> semantics in the code. The downside of this approach is that it a) requires a
> bunch of virtual methods added to DOMNode and probably more importantly b)
> also requires that any classes that inherit from both DOMNode and one of the
> HasXXXImpl classes must override the appropriate methods.--
> Obviously b) especially is not ideal, but without refactoring the code to
> remove the multiple inheritance from both DOMNode and HasXXXImpl classes,
> this seemed to be the least invasive change that would allow us to continue
> building with no-rtti.
> [^0001-Change-dynamic_casts-to-virtual-methods-to-avoid-the.patch]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]