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

possible optimization: compute (once) and bind expressions with no variables #218

Open
justin2004 opened this issue Feb 21, 2022 · 0 comments

Comments

@justin2004
Copy link
Contributor

APRIL> (time (april "{+/,(3 3 ⍴ ¯1 ¯1 ¯1 ¯1 9) × ⍵}⌺ 3 3 ⊢ 300 300 ⍴ 100 ⋄ 0"))
Evaluation took:
  11.227 seconds of real time
  79.567628 seconds of total run time (77.091352 user, 2.476276 system)
  [ Run times consist of 0.148 seconds GC time, and 79.420 seconds non-GC time. ]
  708.72% CPU
  25,774,598,951 processor cycles
  623,278,688 bytes consed

0
APRIL> (time (april "kern←3 3 ⍴ ¯1 ¯1 ¯1 ¯1 9
       {+/,kern × ⍵}⌺ 3 3 ⊢ 300 300 ⍴ 100 ⋄ 0"))
Evaluation took:
  6.386 seconds of real time
  45.859885 seconds of total run time (44.618362 user, 1.241523 system)
  [ Run times consist of 0.041 seconds GC time, and 45.819 seconds non-GC time. ]
  718.13% CPU
  14,661,466,564 processor cycles
  483,270,640 bytes consed

0
@justin2004 justin2004 changed the title possible optimization: compute and bind expressions with no variables possible optimization: compute (once) and bind expressions with no variables Feb 21, 2022
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