]> gitweb.michael.orlitzky.com - hath.git/blobdiff - hath.cabal
Add an example of using multiple threads for DNS lookups.
[hath.git] / hath.cabal
index e6f53955df5171fc884c5f847d921f11e1ba2164..8eb569f410238a9c8ab9aed7c632f5e41e353d32 100644 (file)
@@ -93,6 +93,19 @@ description:
   198.41.0.6: rs.internic.net.
   198.41.0.7:
   @
+  .
+  The DNS lookups are usually the bottleneck for this mode, but we can
+  perform them in parallel. Simply pass the number of threads to the
+  GHC runtime on the command line; for example, the following will
+  perform 25 lookups in parallel:
+  .
+  @
+  hath reversed +RTS -N25 <<< \"198.41.0.4\/24\"
+  198.41.0.4: a.root-servers.net.
+  198.41.0.5:
+  198.41.0.6: rs.internic.net.
+  ...
+  @
 
 executable hath
   build-depends: