Skip to content
CCPEDIAby Unity Nodes
App Development

Performance of importing and exporting specific data types

2 posts177 views1 likesLast activity Sep 2022

  1. cohen.avrahamOP

    G-d willing

    Hello,
    When I decide to export specific data types from my source file, such as:

      module Main (myFunction) where
    

    Does it have better performance in some way (assuming the Main file has many other functions which I don’t export), or is it just for being specific and organized with the code we write?

    The same question goes to when I import specific data types, such as:

      import DA.Optional (fromSome)
    

    Does it make the code more efficient? If yes, in what way?

  2. Stephen 1
    cohen.avraham:

    is it just for being specific and organized with the code we write?

    Yes.

    cohen.avraham:

    Does it make the code more efficient?

    No.