Version française
Home     About     Download     Resources     Contact us    
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
Hello.

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?

Romildo