Skip to content

Conversation

@boyce-pj
Copy link
Contributor

Commiting code from Adam Beck and Lewis Cooley

di/cache/cache.q Outdated
/ Return the result
res};

// Drop some ids from the cache
Copy link
Member

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 /

Copy link
Member

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
Comment on lines 12 to 16
/ function to change default max individual value
setmaxindiv:{.z.m.maxindividual:x}

/ function to change default max size value
setmaxsize:{.z.m.maxsize:x}
Copy link
Member

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

Copy link
Contributor

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?

Copy link
Member

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

Copy link
Contributor

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
Copy link
Member

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 //

Copy link
Member

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

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

Successfully merging this pull request may close these issues.

4 participants