Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/int-index/ghc-load-slow
https://github.com/int-index/ghc-load-slow
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/int-index/ghc-load-slow
- Owner: int-index
- Created: 2023-06-01T16:38:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-02T17:53:31.000Z (over 1 year ago)
- Last Synced: 2024-11-07T03:48:43.239Z (2 months ago)
- Language: Haskell
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Steps to reproduce with `nix`:
```
$ nix build
$ result/bin/gls-exe
```Results:
```
First run:
Set up session: 0.002155565000
Set context: 0.031667107000
Run decls: 3.711375929000
Compile expr: 2.130753714000
ghcLoadApp: 5.876013324000Second run:
Set up session: 0.001424016000
Set context: 0.013176788000
Run decls: 0.012871536000
Compile expr: 0.002616573000
ghcLoadApp: 0.030115064000
```The first run is two orders of magnitude slower.
## Steps to reproduce without `nix`:
```
; ghcup install ghc 9.6.2
; ghcup set ghc 9.6.2
; git clone https://github.com/int-index/ghc-load-slow.git
; cd ghc-load-slow
; CABAL_DIR="$(pwd)/platform-cabal/" cabal install --lib gls-platform
; GLS_PKGDB="$(pwd)/platform-cabal/store/ghc-9.6.2/package.db" GLS_LIBDIR="$HOME/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/" cabal run gls-exe
```
You will need `pkg-config` and `libsdl2-dev` installed.