There's quite a bit of code involved in each call to caml_named_value.

This includes calling hash_value_name, traversal of the named value
list and a call strcmp for every step of the traversal.

Is it sensible to cache the valued returned by caml_named_value and
sticking it into an array of closures?

The array (block) would be registered as global root.

My use case is caml_named_value being called several times a second,
potentially.

    Thanks, Joel

--------------------------------------------------------------------------
Working on AlgoKit, a new algorithmic trading platform using Rithmic R|API
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to