Skip to content
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

IfThenElseConditionIsTrueInThenBranchAndFalseInElseBranch using Syntactic substitute instead of Semantic slows things down even though it shouldn't #24

Open
GoogleCodeExporter opened this issue May 9, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Replace SyntacticSubstitute by SemanticSubstitute in 
IfThenElseConditionIsTrueInThenBranchAndFalseInElseBranch
2. Run aic-praise tests
3. See if it is faster.

Syntactic substitute is faster than semantic since it is simpler and more 
limited. When run in isolation, it is twice as fast as the semantic one. 
However, in the context of praise tests things get a little slower. It may be 
because semantic substitution creates more opportunities for simplification, 
although I don't see how that is the case because it does not decrease the 
number of cases, it simply creates more specialized cases out of more generic 
ones, which are also retained in most cases.

Original issue reported on code.google.com by [email protected] on 5 Sep 2013 at 12:21

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 5 Sep 2013 at 12:21

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

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

No branches or pull requests

1 participant