sjakobi / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
Other
0 stars 0 forks source link

Reduce size of DocIdEnv in .hi-files #18

Open sjakobi opened 6 years ago

sjakobi commented 6 years ago

Currently we have the following definition.

type DocIdEnv = Map HsDocString [Name]

But many/most? Names carry their original source text in their OccName. For those Names we don't need to keep the HsDocString.

sjakobi commented 6 years ago

mpickering cautioned that switching to a more complex data structure would make the code less readable.

Let's wait until we find this to be an important problem then.