Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
mutable record fields and performance
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: j.romildo@g...
Subject: mutable record fields and performance

How do the implementation of mutable and imuttable record fields differ
in ocaml? Have them any impact on field access performance?

That is, the expression p.x has different performances for the types
{ x:int } and { mutable x:int } for p?

In summary, what additional cost does the use of mutable imposes on a
record field?