-
Notifications
You must be signed in to change notification settings - Fork 3
Adding di.cache module #76
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
base: main
Are you sure you want to change the base?
Conversation
di/cache/cache.q
Outdated
| / Return the result | ||
| res}; | ||
|
|
||
| // Drop some ids from the cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments from here onwards use // instead of /
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest of file has been fixed but this line still has //
di/cache/cache.q
Outdated
| / function to change default max individual value | ||
| setmaxindiv:{.z.m.maxindividual:x} | ||
|
|
||
| / function to change default max size value | ||
| setmaxsize:{.z.m.maxsize:x} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to do similar to line 19 in both of these functions to make sure maxindividual is never larger than maxsize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are setting maxsize and maxindividual here and then line 19 runs after, would that not do this already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
during first load, yes, but the point of these functions is that user can set the variables after inital load, and line 19 won't run again in those instances
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, will update that now.
di/cache/cache.q
Outdated
| / Return the result | ||
| res}; | ||
|
|
||
| // Drop some ids from the cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest of file has been fixed but this line still has //
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably have tests for setmaxinidiv and setmaxsize, including validating that the max sizes are respected by execute
Commiting code from Adam Beck and Lewis Cooley