You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested patch smowton@274e2ea checks whether the features are in use at all before using subtype, Forall_operands and other functions that break sharing. Processing Sakai (a Java program that obviously can't use either feature) this saved at least 20% of goto-analyzer's memory usage (maybe more, it exhausted by available memory before completing).
One caveat: in programs that do make heavy use of complex and vector types and which have highly nested expressions this may be costly due to repeated re-checking of sub-expressions.
The text was updated successfully, but these errors were encountered:
On Thu, 2016-10-27 at 03:25 -0700, Chris Smowton wrote:
Suggested patch smowton@274e2ea checks whether the features are in use at all before using subtype, Forall_operands and other functions that break sharing. Processing Sakai (a Java program that obviously can't use either feature) this saved at least 20% of goto-analyzer's memory usage (maybe more, it exhausted by available memory before completing).
From what you've said it seems like this would also affect C and C++.
One caveat: in programs that do make heavy use of complex and vector types and which have highly nested expressions this may be costly due to repeated re-checking of sub-expressions.
More generally, we should be performing sharing-aware traversal and
modification of expressions. There was a move to use a visitor for
this; I think the infrastructure should still be there.
Suggested patch smowton@274e2ea checks whether the features are in use at all before using
subtype
,Forall_operands
and other functions that break sharing. Processing Sakai (a Java program that obviously can't use either feature) this saved at least 20% of goto-analyzer's memory usage (maybe more, it exhausted by available memory before completing).One caveat: in programs that do make heavy use of complex and vector types and which have highly nested expressions this may be costly due to repeated re-checking of sub-expressions.
The text was updated successfully, but these errors were encountered: