[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Joel Reymont <joelr1@g...> |
| Subject: | What is a match statement translated into? |
Folks, Is pattern-matching code in OCaml expanded into threaded code (pre- computed branch table) or something analogous to the C switch statement (lots of branching)? How do I find out? I suspect this should be quite optimized but I haven't tried dumping disassembling native-compiled OCaml yet and I wonder if there's a simpler approach. Thanks, Joel -- http://wagerlabs.com