Github user mjpost commented on the pull request:

    https://github.com/apache/incubator-joshua/pull/12#issuecomment-222120221
  
    I went into joshua/decoder/chart_parser/ComputeNodeResult; adding and 
removing the following lines makes a huge difference in speed. So it looks like 
logging is neither (a) time-safe nor (b) thread-safe.
    
    Or that something is wrong. I can't get the decoder to output any 
statements using the logging properties. It's sort of a pain to have to rebuild 
a tarball every time you want to test something...
    
    FYI, I won't have any more time to spend on this before Tuesday.
    
    ```
    if (LOG.isDebugEnabled()) {
      LOG.debug("ComputeNodeResult():");
      LOG.debug("-> RULE {}", rule);
    }
    
    [snip]
    
    if (LOG.isDebugEnabled()) {
      LOG.debug("-> item.bestedge: {}", item);
      LOG.debug("-> TAIL NODE {}", item);
    }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to