Peter Wang 7005272a5a Cache module file names when writing dependency files.
When writing out dependency files, the compiler would call
module_name_to_file_name often for the same pairs of module name and
file extension. Caching the results of those calls saves on
constructing temporary strings.

This change reduces the time to make dependencies in the compiler
directory from 2.40 seconds to 2.15 seconds on my machine.

compiler/write_deps_file.m:
    Add a predicate make_module_file_name that caches calls to
    module_name_to_file_name.

    Thread the cache map through the predicates in this module.
    Replace calls to module_name_to_file_name with calls to
    make_module_file_name when appropriate.
2023-02-02 16:29:06 +11:00
2022-06-08 22:15:19 +10:00
2023-01-23 13:09:02 +11:00
2022-02-08 12:48:42 +11:00
2023-01-12 16:53:42 +11:00
2023-02-02 16:21:54 +11:00
2022-01-09 10:36:15 +11:00
2023-01-25 16:48:45 +11:00
2023-01-02 15:54:22 +11:00
2022-03-26 00:20:39 +11:00
2022-10-02 03:33:44 +11:00
2022-07-18 17:41:46 +10:00
2022-01-01 15:53:34 +11:00
2023-01-25 16:48:45 +11:00
2022-01-23 23:36:11 +11:00
2023-01-02 15:54:22 +11:00
2022-03-08 09:38:01 +11:00
2023-01-31 15:51:36 +11:00
2023-02-01 01:32:31 +11:00
2023-01-22 23:56:54 +11:00
2023-01-23 04:11:07 +11:00
2023-01-23 17:11:45 +11:00
2023-01-23 01:42:50 +11:00
2023-01-23 04:11:07 +11:00
2023-01-23 02:13:54 +11:00
2022-05-26 16:49:25 +10:00
2022-02-22 17:08:45 +11:00
2023-01-22 16:26:02 +11:00
2023-01-23 13:09:02 +11:00
2023-01-22 19:35:40 +11:00
2023-01-23 01:42:50 +11:00
2023-01-23 13:09:02 +11:00

Mercury

Mercury is a logic/functional programming language which combines the clarity and the expressiveness of declarative programming with advanced static analysis and error detection features.

More information is available on the website's about pages, in other README files in the source code repository, and in the documentation.

Small sample programs written in Mercury can be found in the samples and extras directories of the source code repository.

README files

The Mercury compiler has two different backends and works on different operating systems. Specific information is contained in individual README files:

Other information

See the current release notes for the latest stable release. The news file lists any recent changes. The history file is relevant if you want to find out more about the past development of Mercury. The limitations file lists some ways in which the Mercury implementation does not yet meet its goals.

Information for developers

If you are considering contributing to the Mercury project, the website contains some documents that may be helpful. These include a document about contributions in general and specific information about contributing such as coding styles.

Contact

See our contact page.

Description
No description provided
Readme MIT 145 MiB
Languages
Mercury 85.4%
C 8.7%
Shell 1.4%
Makefile 1%
JavaScript 1%
Other 2%