Skip to content

chore: updated by review tips#15

Merged
will-2012 merged 12 commits intoperf-trienode-readfrom
perf-trienode-read-new
Jun 12, 2024
Merged

chore: updated by review tips#15
will-2012 merged 12 commits intoperf-trienode-readfrom
perf-trienode-read-new

Conversation

@will-2012
Copy link
Copy Markdown
Owner

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@will-2012 will-2012 force-pushed the perf-trienode-read-new branch from d7fd7a5 to 0d229af Compare June 11, 2024 07:52
}
diffHashCacheLengthGauge.Update(int64(h.length()))
log.Debug("Add difflayer to hash map", "root", ly.rootHash(), "map_len", h.length())
log.Info("Add difflayer to hash map", "root", ly.rootHash(), "block_number", dl.block, "map_len", h.length(), "add_delta", h.length()-beforeAdd)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

debug.

}
diffHashCacheLengthGauge.Update(int64(h.length()))
log.Debug("Remove difflayer from hash map", "root", ly.rootHash(), "map_len", h.length())
log.Info("Remove difflayer from hash map", "root", ly.rootHash(), "block_number", dl.block, "map_len", h.length(), "del_delta", beforeDel-h.length())
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

debug.

tree.lock.Lock()
defer tree.lock.Unlock()

defer func() {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

remove.

for root, layer := range tree.layers {
if dl, ok := layer.(*diskLayer); ok && dl.isStale() {
remove(root)
log.Info("Remove stale the disklayer", "disk_root", dl.root.String())
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

debug.

@will-2012 will-2012 force-pushed the perf-trienode-read-new branch from 28bcfe0 to 8e6e681 Compare June 12, 2024 03:00
@will-2012 will-2012 merged commit 6b3c713 into perf-trienode-read Jun 12, 2024
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.

1 participant