Use memoization in file-mapping to improve performance.

Description

Use of the `:file-mapping` to `check-ns-info` now increases run time by a good factor of 5. By memoizing the conversion of types into strings, we can reduce this to a factor of 2. This will also reduce memory consumption, as multiple entries for the same symbol will now contain references to the same string, rather than copies.

Environment

None

Activity

Show:
Ambrose Bonnaire-Sergeant
June 30, 2016, 7:35 PM

I'm thinking of providing the user an atom instead of a map which will be updated when necessary.

Ambrose Bonnaire-Sergeant
December 4, 2017, 12:16 AM

Moving to a different approach, declined.

Declined

Assignee

Unassigned

Reporter

import

Labels

None

Approval

None

Patch

Code

Components

Fix versions

Priority

Major