Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues #262

Open
carkat opened this issue Nov 5, 2022 · 0 comments
Open

Performance issues #262

carkat opened this issue Nov 5, 2022 · 0 comments

Comments

@carkat
Copy link

carkat commented Nov 5, 2022

https://codeberg.org/CptJimKirk/aoc/src/commit/da2d8826e9f9356fde81a350b9d3817312a47999/cl/apl/15.apl#L54

Over a 1000 1000⍴0 array, apply a function to windowed regions defined by

{{↓(⊃⍵)+⍤1⊢↑,⍳1+⊃|-/⍵}1↓¨⍵}

where is (x1 y1)(x2 y2) integer pairs of coordinates.

In Dyalog this takes 4 seconds. In April this is taking well over 15 minutes. I don't know if the windowed regions, applying the function, or the sheer size of the array is the source of the slow down. But something is dragging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant