Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Issue 331603002: Fix caching paging during read. (Closed)

Created:
6 years, 6 months ago by scheglov
Modified:
6 years, 6 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix caching paging during read. Preliminary performance numbers: about 2000 ms to insert 1 million key/value pairs. Page size is 8K, cache is 16 index nodes and 128 leaf nodes. Key is Uint32List(7) = 28 bytes and value is Uint32. I.e. it is basically ElementId to an artificial incremental id. Keys are sequencial, with randomization every 100 keys - add a random number from the range [-5000, 5000). I hope that it is a good simulation for our Element keys - they tend to group by libraries and parts. So, our cache should be able to keep corresponding index/leaf nodes in memory. R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=37274

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -29 lines) Patch
M pkg/analysis_server/lib/src/index/b_plus_tree.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/lib/src/index/page_node_manager.dart View 2 chunks +9 lines, -8 lines 0 comments Download
M pkg/analysis_server/test/index/page_node_manager_test.dart View 5 chunks +44 lines, -20 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
6 years, 6 months ago (2014-06-12 05:38:22 UTC) #1
Brian Wilkerson
LGTM
6 years, 6 months ago (2014-06-12 13:46:19 UTC) #2
scheglov
6 years, 6 months ago (2014-06-12 14:25:14 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r37274 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698