drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laurentgo <...@git.apache.org>
Subject [GitHub] drill issue #858: DRILL-3640: Support JDBC Statement.setQueryTimeout(int)
Date Fri, 30 Jun 2017 18:23:01 GMT
Github user laurentgo commented on the issue:

    https://github.com/apache/drill/pull/858
  
    As for System.currentTimeMillis(), maybe not as expensive as you think: if I remember
correctly, it's a JVM intrinsic (no JNI cost), and if mapped to gettimeofday (which I believe
is the case), it's a VSDO function on Linux, which means it's pretty cheap (no user/kernel
context change).  Compared to creating threads, and waiting on conditions, should be way cheaper.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message