Is there any document for daml-lf-dev-archive-java-proto library?

I am using

<dependency>
    <groupId>com.daml</groupId>
    <artifactId>daml-lf-dev-archive-java-proto</artifactId>
    <version>1.17.1</version>
</dependency>

and wondering if there are any documentations about the library.
For example, I don’t quite understand the following methods of class com.daml.daml_lf_dev.DamlLf1:
getInternedStringsList()
getInternedDottedNamesList().

What are InteredStrings and InternedDottedNames?

1 Like

I don’t think there is detailed documentaton around this unfortunately. The best way to understand this is probably to look at the corresponding protobuf from which the Java code is generated.

For interned strings specifically, there is an array of interned strings per package daml/daml_lf_1.proto at b14077a607b074e1cbfaf56eb2c03ae5b00edccd · digital-asset/daml · GitHub.
Each string is then represented as an index in that array, e.g., for template names daml/daml_lf_1.proto at b14077a607b074e1cbfaf56eb2c03ae5b00edccd · digital-asset/daml · GitHub.

That way repeated strings are only stored once which makes the Dalf much smaller.

1 Like