Github user PuspenduBanerjee commented on the pull request:

    https://github.com/apache/nifi/pull/202#issuecomment-179166551
  
    @trkurc  I think, if UUID format is of concern the following piece will run 
more than 2 times faster compared to `UUID(0,long)`, could you please re-verify:
    ```java
    private static String createFakeUUIDString(final AtomicLong atomicLong){
             final String s=Long.toHexString(atomicLong.incrementAndGet());
            return new StringBuffer("00000000-0000-0000-0000000000000000"
                                          .substring(0,(35-s.length()))+s)
                                           .insert(23, '-').toString();
        }
    ```
    I hope, everyone wins that way too along with more performance benefit.  


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to