Skip to content

Conversation

@Thejas-bhat
Copy link
Member

The interface for disk stats introduced in PR #1702, #17 and #15
are currently computed all time the irrespective of whether or not its needed. Since it is in a fairly hot code path, it could affect the performance when these stats are not needed. Hence, this PR aims to hide those stats computation behind a flag which controls the same.

@abhinavdangeti
Copy link
Member

abhinavdangeti commented Jul 15, 2022

Doesn't feel like the right place for this at all.

@abhinavdangeti
Copy link
Member

I think it's ok to collect bytesRead within zap, so I'd recommend against this change.

// to reset the bytes read value to a consistent
// value during operations such as merging of segments.
ResetBytesRead(uint64)
// BytesRead returns the bytes written to disk while
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BytesWritten*

@abhinavdangeti abhinavdangeti marked this pull request as ready for review July 22, 2022 16:34
@abhinavdangeti abhinavdangeti merged commit bb135b8 into blevesearch:master Jul 22, 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

Successfully merging this pull request may close these issues.

2 participants